if freemarker could add extends feature? -
some directive:
#extends, #block, #override, #super
for example, have layout template file,
base.ftl
<html> <head> <#block name="head">base_head_content</#block> </head> <body> <#block name="body">base_body_content</#block> </body> </html>
now, write page,
child.ftl
<@override name="body"> <div class='content'> powered rapid-framework </div> <@super/> </@override> <@extends name="base.ftl"/>
then, have following outputs,
<html> <head> base_head_content </head> <body> <div class='content'> powered rapid-framework </div> base_body_content </body> </html>
isn't idea?
is this question, or request? mean, stackoverflow not place last.
that freemarker doesn't support kind of thing (unless hack custom directives, possible extent) known problem. reason doesn't support (yet...) lack of development time.
Comments
Post a Comment