projecto completo creo, me quedo bonito :3
This commit is contained in:
31
templates/base.qtpl
Normal file
31
templates/base.qtpl
Normal file
@@ -0,0 +1,31 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user