template-lint
template-lint copied to clipboard
Support Value Converters
Upon finding a converter:
${some.value | booBoo}
should do the following:
- reverse naming convention:
booBoo
>BooBooValueConverter
- look for
{caller-base-path}\boo-boo.ts
- fallback: look for any module that exports
BooBooValueConverter
- fallback: look for any module that exports
- if source found
- find
toView
method - if
toView
Model has a static type output:- use that type as contect and continue access chain.
- find
Note, value converters can be registered globally as well.
...And imported using require tag.
yeah, this is where things start to get a little difficult --without actually loading up aurelia fully-- to be honest :D
Yeah, that might be a problem with global VCs, but not with require tags