On Fri, Jan 23, 2015 at 3:41 PM, Chetan Mehrotra
<chetan.mehro...@gmail.com> wrote:
> On Fri, Jan 23, 2015 at 7:59 PM, Radu Cotescu <r...@apache.org> wrote:
>> But we'd need a mixin, as scripts are usually nt:file nodes. Right?
> ...Other way would be to leverage the
> jcr:mimeType on the child jcr:content node which are mostly of type
> nt:resource...

But setting any of those is not convenient when you're editing scripts
via WebDAV for example.

I much prefer the suggestion to set a property higher in tree, so for
example setting

  /apps/foo@sling:script = html:thymeleaf.

Causes the html extension to be mapped to the thymeleaf engine for any
script found under there.

That looks efficient, simple to manage, we'd just need to complain
loudly including a pointer to that feature if two script engines are
configured with the same extension and this is not set.

-Bertrand

Reply via email to