comparison decoupage/formatters.py @ 33:e384d4569ac3

include components necessary to make decoupage feel almost like a framework
author k0s <k0scist@gmail.com>
date Mon, 08 Feb 2010 11:40:57 -0500
parents 983c13e1b71f
children 527ccb76d043
comparison
equal deleted inserted replaced
32:983c13e1b71f 33:e384d4569ac3
141 def __init__(self, arg): 141 def __init__(self, arg):
142 self.css = arg.split() 142 self.css = arg.split()
143 def __call__(self, request, data): 143 def __call__(self, request, data):
144 data['css'] = self.css 144 data['css'] = self.css
145 145
146 class JavaScript(object):
147 """specify JS for the page"""
148
149 def __init__(self, arg):
150 self.scripts = arg.split()
151 def __call__(self, request, data):
152 data['scripts'] = self.scripts
153
154 class Favicon(object):
155 """specify favicons for the page"""
156
157 def __init__(self, icon):
158 self.icon = icon
159 def __call__(self, request, data):
160 data['icon'] = self.icon
161
146 class Include(object): 162 class Include(object):
147 """include a file at the top of the body""" 163 """include a file at the top of the body"""
148 164
149 def __init__(self, arg): 165 def __init__(self, arg):
150 self.include = arg 166 self.include = arg