compound icon indicating copy to clipboard operation
compound copied to clipboard

renderSection

Open hankeypancake opened this issue 12 years ago • 1 comments

a separate function for rendering a single template file into html, which could then be inserted into the layout. the current render function only renders into the body variable.

example (ejs):

controller: renderSection("sectionName", "templateName", {[params]});

in layout <%- sectionName %>

hankeypancake avatar Jan 16 '14 13:01 hankeypancake

the main idea for this is that I want to be able to deep link easily in a webapp that normally has content loaded through ajax. say a sidebar changed and you want to deep link to that state, this would help. depending on route you could say load this or load that, instead of having to do it through conditional statements in the templates

hankeypancake avatar Jan 23 '14 14:01 hankeypancake