@cloudfour/hbs-helpers
Advanced tools
Comparing version 0.6.1 to 0.7.0
@@ -24,2 +24,3 @@ 'use strict'; | ||
var svg; | ||
var prepend; | ||
@@ -46,2 +47,7 @@ if (arguments.length < 2) { | ||
if (!R.isNil(options.fn)) { | ||
prepend = ltx.parse('<root>' + options.fn(this) + '</root>'); | ||
svg.children = R.concat(prepend.children, svg.children); | ||
} | ||
return new Handlebars.SafeString(svg.root()); | ||
@@ -68,2 +74,6 @@ } | ||
* {{svg "foo/test" class="foo" width="24" height="24"}} | ||
* | ||
* {{#svg "foo/test" aria-labelledby="foo-title"}} | ||
* <title id="foo-title">Hello world</title> | ||
* {{/svg}} | ||
*/ | ||
@@ -70,0 +80,0 @@ |
{ | ||
"name": "@cloudfour/hbs-helpers", | ||
"version": "0.6.1", | ||
"version": "0.7.0", | ||
"description": "Handlebars helpers used for various Cloud Four projects.", | ||
@@ -5,0 +5,0 @@ "author": "Cloud Four (http://cloudfour.com)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
731
22317
25
2
0