pug - CompoundJS and Jade templates -
i'm using "jade" view engine compoundjs, doesn't use proper jade workflow when call render() method within controller (e.g. rendering same layout, yielding inner template body parameter of layout).
i need know how either:
- change layout controller (its using application_layout.jade) , able render without layout
- render views normally, have layout specified within view template (e.g. specifying explicitly template i'm extending, jade directive "extend layout")
you can override application_layout
own. convention-based.
for example, if want override login
view different layout, add new template app/views/layouts/login_layout.ejs
.
the inner template specified <%- body %>
.
<!-- different markup before --> <%- body --> <!-- different markup after -->
Comments
Post a Comment