Allow snippet resolution for subpackages
Currently (without modification in LiftRules.snippetNamesToSearch) snippet resolution is restricted to those classes in the xxx.snippet package. It would be useful for organizing large numbers of snippets to be able to create sub packages within the snippet package and resolve snippet classes by including the name of their sub package, i.e.
<span class="lift:subpack.Foo.bar">Hello</span>
would resolve to the snippet class xxx.snippet.subpack.Foo and method bar. Current behaviour resolves this to xxx.snippet.Foo and method bar, silently discarding the subpack. Sub packages of sub packages could also be supported.
<span class="lift:subpack.Foo.bar">Hello</span>
would resolve to the snippet class xxx.snippet.subpack.Foo and method bar. Current behaviour resolves this to xxx.snippet.Foo and method bar, silently discarding the subpack. Sub packages of sub packages could also be supported.
Leave a comment
(In revision:c973f085d1e8ab903a9f468358ebc5f13ac768e1) Closes #1061. Snippets can be in subpackages
Branch: master
Branch: master