@register.tag
def stylesheet(parser, token):
 try:
  (_, name) = token.split_contents()
 except ValueError:
  raise template.TemplateSyntaxError(('%r requires exactly one argument: the name of a group in the PIPELINE_CSS setting' % token.split_contents()[0]))
 return ThemeStylesheetNode(name)

@ register . tag def stylesheet ( parser , token ) : try : ( _ , name ) = token . split_contents ( ) except ValueError : raise template . TemplateSyntaxError ( ( '%r requires exactly one argument: the name of a group in the PIPELINE_CSS setting' % token . split_contents ( ) [ 0 ] ) ) return ThemeStylesheetNode ( name )
template tag to serve stylesheets from django-pipeline .