[Checkins] SVN: grokproject/trunk/grokproject/template/src/+package+/ Demonstrate fanstatic with a style sheet.
Jan-Jaap Driessen
jdriessen at thehealthagency.com
Mon Jan 3 12:44:53 EST 2011
Log message for revision 119326:
Demonstrate fanstatic with a style sheet.
Changed:
U grokproject/trunk/grokproject/template/src/+package+/app.py_tmpl
U grokproject/trunk/grokproject/template/src/+package+/resource.py_tmpl
A grokproject/trunk/grokproject/template/src/+package+/static/style.css
-=-
Modified: grokproject/trunk/grokproject/template/src/+package+/app.py_tmpl
===================================================================
--- grokproject/trunk/grokproject/template/src/+package+/app.py_tmpl 2011-01-03 17:37:05 UTC (rev 119325)
+++ grokproject/trunk/grokproject/template/src/+package+/app.py_tmpl 2011-01-03 17:44:52 UTC (rev 119326)
@@ -6,5 +6,5 @@
pass
class Index(grok.View):
- # see app_templates/index.pt
- pass
+ def update(self):
+ resource.style.need()
Modified: grokproject/trunk/grokproject/template/src/+package+/resource.py_tmpl
===================================================================
--- grokproject/trunk/grokproject/template/src/+package+/resource.py_tmpl 2011-01-03 17:37:05 UTC (rev 119325)
+++ grokproject/trunk/grokproject/template/src/+package+/resource.py_tmpl 2011-01-03 17:44:52 UTC (rev 119326)
@@ -3,5 +3,3 @@
library = Library('${project_lowercase}', 'static')
style = Resource(library, 'style.css')
-
-hello = Resource(library, 'hello.js')
Added: grokproject/trunk/grokproject/template/src/+package+/static/style.css
===================================================================
--- grokproject/trunk/grokproject/template/src/+package+/static/style.css (rev 0)
+++ grokproject/trunk/grokproject/template/src/+package+/static/style.css 2011-01-03 17:44:52 UTC (rev 119326)
@@ -0,0 +1,4 @@
+/* This is a silly style sheet solely used for demonstrating fanstatic. */
+body {
+ background-color: #eee;
+}
More information about the checkins
mailing list