Files
todo-en-go/templates/base.qtpl
2019-04-17 12:36:31 -04:00

32 lines
666 B
Plaintext

{% interface PageImpl {
Title()
Stylesheets()
Scripts()
Body()
}
%}
{% func Page(p PageImpl) %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<title>{%= p.Title() %}</title>
{%= p.Stylesheets() %}
{%= p.Scripts() %}
</head>
<body>
{%= p.Body() %}
</body>
</html>
{% endfunc %}
{% func GetDoneButton(done bool) %}
{% if done %}
<input type="submit" class="button-primary button-green u-full-width" value="">
{% else %}
<input type="submit" class="button-primary button-red u-full-width" value="">
{% endif %}
{% endfunc %}