Skip to content

Refactor index.mako to have a base template #18

@JaimieMurdock

Description

@JaimieMurdock

Right now the template files aren't actually using a templating engine. They need to have a master template that has the nav bar and <html>, <head> and <body> elements embedded. This will reduce the file size of each template.

A good example of templates in action is the inpho/inphosite project. Two good files are the base-nosidebar.html and index.html.

base-nosidebar.html specifies the shell of each page at [https://inpho.cogs.indiana.edu/]. The call to ${next.body()} replaces the inner content with the page that inherits from this template. This is at the top of index.html as <%inherit file="/base-nosidebar.html"/>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions