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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -