Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
Demonstrate fanstatic with a style sheet.
Browse files Browse the repository at this point in the history
  • Loading branch information
janjaapdriessen committed Jan 3, 2011
1 parent 6fbbda1 commit 6784050
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions grokproject/template/src/+package+/app.py_tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ class ${app_class_name}(grok.Application, grok.Container):
pass

class Index(grok.View):
# see app_templates/index.pt
pass
def update(self):
resource.style.need()
2 changes: 0 additions & 2 deletions grokproject/template/src/+package+/resource.py_tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ from fanstatic import Library, Resource
library = Library('${project_lowercase}', 'static')

style = Resource(library, 'style.css')

hello = Resource(library, 'hello.js')
4 changes: 4 additions & 0 deletions grokproject/template/src/+package+/static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* This is a silly style sheet solely used for demonstrating fanstatic. */
body {
background-color: #eee;
}

0 comments on commit 6784050

Please sign in to comment.