Commits

megamahi committed dba8d2b

Added link-resource and template

Comments (0)

Files changed (4)

tw2/lesscss/resources.py

+import tw2.core as twc
+from base import less_js
+
+class LessCSSLink(twc.Link):
+    location = 'head'
+    template = 'tw2.lesscss.templates.lesslink'

tw2/lesscss/templates/lesscss.html

-<div xmlns:py="http://genshi.edgewall.org/" py:attrs="attrs"></div>

tw2/lesscss/templates/lesslink.html

+<link rel="stylesheet/less" type="text/css" href="$w.link" />

tw2/lesscss/templates/lesslink.mak

+<link rel="stylesheet/less" type="text/css" href="${w.link}" />