Current section

Files

Jump to
mandarin priv templates mandarin.install router.ex
Raw

priv/templates/mandarin.install/router.ex

pipeline :<%= install.context_underscore %>_layout do
# Use our own layout for pages in this context
plug(:put_root_layout, {<%= install.web_module %>.<%= install.layout_view_module %>, :root})
plug(:put_layout, {<%= install.web_module %>.<%= install.layout_view_module %>, :app})
end
scope "/<%= install.context_underscore %>", <%= install.web_module %>.<%= install.context_camel_case %>, as: :<%= install.context_underscore %> do
pipe_through([:browser, :<%= install.context_underscore %>_layout])
# Add your routes here
get "/", IndexController, :index
# Routes will be added below the next line (don't delete it):
# %% Mandarin Routes - <%= install.context_camel_case %> %%
end