Commits

jayon ayon committed 63cef61

Agrego jinja y pyjade

Comments (0)

Files changed (4)

+Jinja2==2.6
 mongoengine==0.6.10
+pyjade==1.5
 pymongo==2.2
 tornado==2.3
 wsgiref==0.1.2
+# -*- coding: utf-8 -*-
+import os
+from jinja2 import Environment, FileSystemLoader
+
 DEBUG = False
 XSRF_COOKIES = False
 
 #MEMCACHED_DEBUG = True
 #MEMCACHED_TIMEOUTS_VIDEOS = 3600
 
+_local_path = os.path.dirname(__file__)
+STATIC_PATH = os.path.join(_local_path, 'static')
+STATIC_URL_PREFIX = '/static/'
+
+TEMPLATE_PATH = os.path.join(_local_path, 'templates')
+TEMPLATE_ENV = Environment(loader=FileSystemLoader(TEMPLATE_PATH), extensions=['pyjade.ext.jinja.PyJadeExtension'])
+
 TWITTER_CONSUMER_KEY = 'UyBx5NVpGMiQJgh0jU1Kug'
 TWITTER_CONSUMER_SECRET = 'g32evW2ytcz70iUFoYQlqbMu93WabJCQvCMlFs3Pb9U'
 

templates/site/index.jade

+- extends layout

templates/site/layout.jade

+!!!transtitional
+
+//if lt IE 7
+  html#html.no-js.lt-ie10.lt-ie9.lt-ie8.lt-ie7(lang='en')
+//if IE 7
+  html#html.no-js.lt-ie10.lt-ie9.lt-ie8(lang='en')
+//if IE 8
+  html#html.no-js.lt-ie10.lt-ie9(lang='en')
+//if IE 9
+  html#html.no-js.lt-ie10(lang='en')
+//[if gt IE 9]><!
+html#html.no-js(lang='en')
+  //<![endif]
+  head
+    title Smart Tweet
+    meta( charset='utf-8' )
+    meta( http-equiv='X-UA-Compatible', content='IE=edge,chrome=1' )
+    meta( name='description', content='' )
+    link( href!="{{ handler.static_url('css/site.css') }}", type='text/css', rel='styleSheet', media='screen' )
+
+  body
+    h1 hola mundo