Skip to content
This repository
Browse code

Release 0.8.6

  • Loading branch information...
commit aef5f77e5b20012103258b074145d509f8bbe1c1 1 parent 8dede89
Michael Kessler authored
4 CHANGELOG.md
Source Rendered
@@ -2,6 +2,10 @@
2 2
3 3 Please also have a look at the [Haml Coffee Changelog](https://github.com/9elements/haml-coffee/blob/master/CHANGELOG.md).
4 4
  5 +## 0.8.6 - April 30, 2012
  6 +
  7 +- [Issue #40](https://github.com/netzpirat/haml_coffee_assets/issues/40): Fix special class interpolation. ([@netzpirat][])
  8 +
5 9 ## 0.8.5 - April 16, 2012
6 10
7 11 - [Pull #38](https://github.com/netzpirat/haml_coffee_assets/pull/38): Fix `customSurround` option. ([@dzello][])
2  lib/haml_coffee_assets/version.rb
... ... @@ -1,5 +1,5 @@
1 1 # coding: UTF-8
2 2
3 3 module HamlCoffeeAssets
4   - VERSION = '0.8.5' unless defined?(HamlCoffeeAssets::VERSION)
  4 + VERSION = '0.8.6' unless defined?(HamlCoffeeAssets::VERSION)
5 5 end
6 lib/js/haml-coffee.js
@@ -904,7 +904,7 @@ require.define("/util/text.js", function (require, module, exports, __dirname, _
904 904 },
905 905 escapeQuotes: function(text) {
906 906 if (!text) return '';
907   - return text.replace(/"/g, '\\"');
  907 + return text.replace(/"/g, '\\"').replace(/\\\\\"/g, '"');
908 908 },
909 909 unescapeQuotes: function(text) {
910 910 if (!text) return '';
@@ -1195,8 +1195,10 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1195 1195 _ref = tokens.classes;
1196 1196 for (_i = 0, _len = _ref.length; _i < _len; _i++) {
1197 1197 klass = _ref[_i];
1198   - if (interpolation = klass.match(/#{(.*)}/)) {
  1198 + if (interpolation = klass.match(/^#{(.*)}$/)) {
1199 1199 classes += "(" + interpolation[1] + "),";
  1200 + } else if (interpolation = klass.match(/#{(.*)}/)) {
  1201 + classes += "\\\"" + klass + "\\\"";
1200 1202 } else {
1201 1203 classes += "'" + klass + "',";
1202 1204 }

0 comments on commit aef5f77

Please sign in to comment.
Something went wrong with that request. Please try again.