Skip to content

Commit 4645a52

Browse files
author
Andrey Fedoseev
committed
Remove compiler specific template tags:
* `{% coffeescript %}` * `{% inlinecoffeescript %}` * `{% sass %}` * `{% inlinesass %}` * `{% scss %}` * `{% inlinescss %}` * `{% less %}` * `{% inlineless %}`
1 parent 0f1ffc4 commit 4645a52

File tree

6 files changed

+9
-60
lines changed

6 files changed

+9
-60
lines changed

CHANGES.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@ Dev
88
- Add `Stylus <http://learnboost.github.io/stylus/>` compiler
99
- Add ``compile`` template filter
1010
- Deprecate ``{% compile %}`` template tag
11+
- **The following compiler specific template tags are REMOVED:**
1112

13+
* ``{% coffeescript %}``
14+
* ``{% inlinecoffeescript %}``
15+
* ``{% sass %}``
16+
* ``{% inlinesass %}``
17+
* ``{% scss %}``
18+
* ``{% inlinescss %}``
19+
* ``{% less %}``
20+
* ``{% inlineless %}``
1221

1322
0.9
1423
===

static_precompiler/templatetags/coffeescript.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

static_precompiler/templatetags/compile_static.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -56,23 +56,3 @@ def inlinecompile(nodelist, context, compiler):
5656
return output
5757

5858
return compiler.compile_source(source)
59-
60-
61-
def _warn(old, new):
62-
warnings.warn(
63-
"{%% %s %%} tag has been deprecated, use {%% %s %%} from `compile_static` template tag library "
64-
"instead." % (old, new),
65-
DeprecationWarning,
66-
)
67-
68-
69-
def register_compiler_tags(register, compiler):
70-
@register.simple_tag(name=compiler.name)
71-
def tag(source_path):
72-
_warn(compiler.name, 'compile')
73-
return compile_tag(source_path, compiler)
74-
75-
@base.container_tag(register, name="inline" + compiler.name)
76-
def inline_tag(nodelist, context):
77-
_warn('inline%s' % compiler.name, 'inlinecompile "%s"' % compiler.name)
78-
return inlinecompile(nodelist, context, compiler)

static_precompiler/templatetags/less.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

static_precompiler/templatetags/sass.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

static_precompiler/templatetags/scss.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)