viktor-ferenczi / genshi-compiler

Genshi markup template compiler
0 stars 0 forks source link

Add support for xi:include and xi:fallback #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We should add some kind of support for `xi:include` and `xi:fallback`. I think 
we could just add some kind of mapping from template filenames as given in the 
`href` attribute of the `xi:include` directives to the compiled module names 
and import them automatically. Dynamic include paths would not be supported 
this way, but that would not be such a big limitation, I think.

Original issue reported on code.google.com by ferenczi.viktor on 17 Jul 2011 at 12:38

GoogleCodeExporter commented 9 years ago
Adding such mapping might force a specific module structure on the developer. 
Adding a customizable mapping might help, but seems to make things "implicit". 
We might reconsider this later if there's a significant need from actual 
developers using the compiler.

Original comment by ferenczi.viktor on 16 Jan 2012 at 3:07