Browse Source

Issue 110: Modified combined plugin to process during begin_text_resource

main
Lakshmi Vyasarajan 13 years ago
parent
commit
2b9409543e
6 changed files with 11 additions and 7 deletions
  1. +5
    -0
      CHANGELOG.rst
  2. +1
    -1
      README.rst
  3. +1
    -1
      hyde/ext/plugins/combine.py
  4. +2
    -1
      hyde/tests/ext/combine/script.3.js
  5. +1
    -3
      hyde/tests/ext/test_combine.py
  6. +1
    -1
      hyde/version.py

+ 5
- 0
CHANGELOG.rst View File

@@ -1,3 +1,8 @@
Version 0.8.5a3
============================================================

* Bug Fix: Modified combined plugin to process during `begin_text_resource`. (Issue #110)

Version 0.8.5a2
============================================================



+ 1
- 1
README.rst View File

@@ -1,4 +1,4 @@
Version 0.8.5a2
Version 0.8.5a3

A brand new **hyde**
====================


+ 1
- 1
hyde/ext/plugins/combine.py View File

@@ -96,7 +96,7 @@ class CombinePlugin(Plugin):
"Resource [%s] removed because combined" % r)
r.is_processable = False

def text_resource_complete(self, resource, text):
def begin_text_resource(self, resource, text):
"""
When generating a resource, add combined file if needed.
"""


+ 2
- 1
hyde/tests/ext/combine/script.3.js View File

@@ -1 +1,2 @@
var c = a + 5;
{% set five = 5 %}
var c = a + {{ five }};

+ 1
- 3
hyde/tests/ext/test_combine.py View File

@@ -65,7 +65,6 @@ combine:
---

First line

""")
expected = """First line
var a = 1 + 2;
@@ -73,7 +72,7 @@ var b = a + 3;
var c = a + 5;
"""

assert text == expected
assert text.strip() == expected.strip()
return

def test_combine_remove(self):
@@ -119,7 +118,6 @@ combine:
---

Last line""")
print text
assert text == """var a = 1 + 2;
var b = a + 3;
var c = a + 5;


+ 1
- 1
hyde/version.py View File

@@ -3,4 +3,4 @@
Handles hyde version
TODO: Use fabric like versioning scheme
"""
__version__ = '0.8.5a2'
__version__ = '0.8.5a3'

Loading…
Cancel
Save