## this is the skeleton of all pages on in this app - it defines the basic html tags ## set up a StaticRenderer object to enable the CSS/JS automatic inclusion magic. <%%! from django_mako_plus.controller import static_files %%> <%% static_renderer = static_files.StaticRenderer(self) %%> %(app_name)s ## add any site-wide scripts or CSS here; for example, jquery: ## render the css with the same name as this page ${ static_renderer.get_template_css(request, context) }
Welcome to the %(app_name)s app!
<%%block name="content"> Site content goes here in sub-templates. ## render the JS with the same name as this page ${ static_renderer.get_template_js(request, context) }