Skip to content

Instantly share code, notes, and snippets.

@knowsuchagency
Created June 15, 2017 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knowsuchagency/6c64c2795ea5e3f5bc280dae7704bae6 to your computer and use it in GitHub Desktop.
Save knowsuchagency/6c64c2795ea5e3f5bc280dae7704bae6 to your computer and use it in GitHub Desktop.
pug template version of Pyramid layout
//
Created by stephanfitzpatrick on 6/15/17.
doctype html
html(lang= "#{ request.locale_name }")
head
meta(charset="utf-8")
meta(http-equiv="X-UA-Compatible", content="IE=edge")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
meta(name="description", content="pyramid web application")
meta(name="author", content="Pylons Project")
link(rel="shortcut icon", href="#{ request.static_url('{{ cookiecutter.repo_name }}:static/pyramid-16x16.png')}")
title Cookiecutter Alchemy project for the Pyramid Web Framework
// Bootstrap core CSS
link(href="//oss.maxcdn.com/libs/twitter-bootstrap/3.0.3/css/bootstrap.min.css", rel="stylesheet")
// Custom styles for this scaffold
link(href="#{ request.static_url('{{ cookiecutter.repo_name }}:static/theme.css')}", rel="stylesheet")
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
script(src="//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js", integrity="sha384-0s5Pv64cNZJieYFkXYOTId2HMA2Lfb6q2nAcx2n0RTLUnCAoTTsS0nKEO27XyKcY", crossorigin="anonymous")
script(src="//oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js", integrity="sha384-f1r2UzjsxZ9T4V1f2zBO/evUqSEOpeaUUZcMTz1Up63bl4ruYnFYeM+BxI4NhyI0", crossorigin="anonymous")
<![endif]-->
body
.starter-template
.container
.row
.col-md-2: a(href="#{ request.route_url('home') }")
img(class="logo img-responsive", src="#{ request.static_url('{{ cookiecutter.repo_name }}:static/pyramid.png')}", alt="pyramid web framework")
.col-md-10
block content
.row
.links
ul
li
i.glyphicon.glyphicon-cog.icon-muted
a(href="https://github.com/Pylons/pyramid") Github Project
li
i.glyphicon.glyphicon-globe.icon-muted
a(href="https://webchat.freenode.net/?channels=pyramid") IRC Channel
li
i.glyphicon.glyphicon-home.icon-muted
a(href="http://pylonsproject.org") Pylon Project
.row
.copyright Copyright &copy; Pylons Project
// Bootstrap core JavaScript
Placed at the end of the document so the pages load faster
script(src="//oss.maxcdn.com/libs/jquery/1.10.2/jquery.min.js", integrity="sha384-aBL3Lzi6c9LNDGvpHkZrrm3ZVsIwohDD7CDozL0pk8FwCrfmV7H9w8j3L7ikEv6h", crossorigin="anonymous")
script(src="//oss.maxcdn.com/libs/jquery/1.10.2/jquery.min.js", integrity="sha384-aBL3Lzi6c9LNDGvpHkZrrm3ZVsIwohDD7CDozL0pk8FwCrfmV7H9w8j3L7ikEv6h", crossorigin="anonymous")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment