snakeskin
Advanced tools
Comparing version 7.0.0-beta5 to 7.0.0-beta6
@@ -1,2 +0,2 @@ | ||
/* Snakeskin v7.0.0, key <["umd","tpls",null,false,"\\n",false,null,"stringConcat",true,null,true,"i18n",null,["{{","}}"],"bem",{"global":["html","undef"],"local":["undef"]},true]>, label <1454444946116>, includes <>, generated at <1454447473233>. | ||
/* Snakeskin v7.0.0.beta6, key <["umd","tpls",null,false,"\\n",false,null,"stringConcat",true,null,true,"i18n",null,["{{","}}"],"bem",{"global":["html","undef"],"local":["undef"]},true]>, label <1454517555328>, includes <>, generated at <1454943204638>. | ||
This code is generated automatically, don't alter it. */ | ||
@@ -24,4 +24,4 @@ (function(global, factory) { | ||
} | ||
if (typeof val === 'string' || {}.toString.call(val) === '[object Array]') { | ||
return val; | ||
if (typeof val === 'string' || Array.isArray(val)) { | ||
return val.length; | ||
} | ||
@@ -31,2 +31,10 @@ return 1; | ||
function __JOIN__(arr) { | ||
var str = ''; | ||
for (var i = 0; i < arr.length; i++) { | ||
str += arr[i]; | ||
} | ||
return str; | ||
} | ||
function __ESCAPE_D_Q__(str) { | ||
@@ -60,3 +68,3 @@ return str.replace(/"/g, """) | ||
}; | ||
__LOCAL__.$__0_0_420d2 = undefined; /* Snakeskin template: demo.helloWorld; name */ | ||
__LOCAL__.$__0_0_cd0c6 = undefined; /* Snakeskin template: demo.helloWorld; name */ | ||
if (exports.demo == null) { | ||
@@ -120,12 +128,14 @@ exports.demo = {}; | ||
__RESULT__ += 'Hello '; | ||
__RESULT__ += __FILTERS__['htmlObject']((__LOCAL__.$__0_0_420d2 = __FILTERS__['html'].call(this, (__LOCAL__.$__0_0_420d2 = __FILTERS__['attr'].call(this, ((__LOCAL__.$__0_0_420d2 = __FILTERS__['undef'](name))), 'undefined', __ATTR_TYPE__, ____ATTR_CACHE___tag_254, TRUE, FALSE)), Unsafe, __ATTR_TYPE__, ____ATTR_CACHE___tag_254, TRUE))); | ||
__RESULT__ += __FILTERS__['htmlObject']((__LOCAL__.$__0_0_cd0c6 = __FILTERS__['html'].call(this, (__LOCAL__.$__0_0_cd0c6 = __FILTERS__['attr'].call(this, ((__LOCAL__.$__0_0_cd0c6 = __FILTERS__['undef'](name))), 'undefined', __ATTR_TYPE__, ____ATTR_CACHE___tag_254, TRUE, FALSE)), Unsafe, __ATTR_TYPE__, ____ATTR_CACHE___tag_254, TRUE))); | ||
__RESULT__ += '!'; | ||
if (____TAG___tag_254 !== '?') { | ||
if (__INLINE_TAGS__[____TAG___tag_254] && __INLINE_TAGS__[____TAG___tag_254] !== true) { | ||
var ____CALL_TMP___tag_305 = __RESULT__ instanceof Raw ? __RESULT__.value : __RESULT__; | ||
__RESULT__ = ____CALL_CACHE___tag_254; | ||
if (__INLINE_TAGS__[____TAG___tag_254] in ____ATTR_CACHE___tag_254 === false) { | ||
__RESULT__ += ' ' + __INLINE_TAGS__[____TAG___tag_254] + '="' + __FILTERS__['htmlObject']((__LOCAL__.$__0_0_420d2 = __FILTERS__['html'].call(this, (__LOCAL__.$__0_0_420d2 = __FILTERS__['attr'].call(this, ((__LOCAL__.$__0_0_420d2 = __FILTERS__['undef'](____CALL_TMP___tag_305))), 'undefined', __ATTR_TYPE__, ____ATTR_CACHE___tag_254, TRUE, FALSE)), Unsafe, __ATTR_TYPE__, ____ATTR_CACHE___tag_254, TRUE))) + '"'; | ||
if (__INLINE_TAGS__[____TAG___tag_254]) { | ||
if (__INLINE_TAGS__[____TAG___tag_254] !== true) { | ||
var ____CALL_TMP___tag_305 = __RESULT__ instanceof Raw ? __RESULT__.value : __RESULT__; | ||
__RESULT__ = ____CALL_CACHE___tag_254; | ||
if (__INLINE_TAGS__[____TAG___tag_254] in ____ATTR_CACHE___tag_254 === false) { | ||
__RESULT__ += ' ' + __INLINE_TAGS__[____TAG___tag_254] + '="' + __FILTERS__['htmlObject']((__LOCAL__.$__0_0_cd0c6 = __FILTERS__['html'].call(this, (__LOCAL__.$__0_0_cd0c6 = __FILTERS__['attr'].call(this, ((__LOCAL__.$__0_0_cd0c6 = __FILTERS__['undef'](____CALL_TMP___tag_305))), 'undefined', __ATTR_TYPE__, ____ATTR_CACHE___tag_254, TRUE, FALSE)), Unsafe, __ATTR_TYPE__, ____ATTR_CACHE___tag_254, TRUE))) + '"'; | ||
} | ||
__RESULT__ += '>'; | ||
} | ||
__RESULT__ += '>'; | ||
} else if (true) { | ||
@@ -132,0 +142,0 @@ __RESULT__ += '</' + ____TAG___tag_254 + '>'; |
/*! | ||
* Snakeskin v7.0.0-beta5 (live) | ||
* Snakeskin v7.0.0-beta6 (live) | ||
* https://github.com/SnakeskinTpl/Snakeskin | ||
@@ -8,3 +8,3 @@ * | ||
* | ||
* Date: 'Thu, 04 Feb 2016 12:13:16 GMT | ||
* Date: 'Mon, 08 Feb 2016 14:51:34 GMT | ||
*/ | ||
@@ -43,3 +43,3 @@ | ||
var Snakeskin = { | ||
VERSION: [7, 0, 0, 'beta5'] | ||
VERSION: [7, 0, 0, 'beta6'] | ||
}; | ||
@@ -46,0 +46,0 @@ |
@@ -1,4 +0,4 @@ | ||
/*! Snakeskin v7.0.0-beta5 (live) | https://github.com/SnakeskinTpl/Snakeskin/blob/master/LICENSE */ | ||
/*! Snakeskin v7.0.0-beta6 (live) | https://github.com/SnakeskinTpl/Snakeskin/blob/master/LICENSE */ | ||
(function(){'use strict';function r(){function w(a){return x[a]}function y(a){return z[a]||a}function k(a,b){function d(){this.constructor=a}d.prototype=b.prototype;a.prototype=new d}function l(a,b){a=((A.exec(a)||[])[1]||"").trim();return Boolean(a&&isNaN(Number(a))&&!(b||B)[a])}var f={};f.a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol?"symbol":typeof a};f.defineProperty=function(a,b,d){b in a?Object.defineProperty(a, | ||
b,{value:d,enumerable:!0,configurable:!0,writable:!0}):a[b]=d;return a};f;var c={VERSION:[7,0,0,"beta5"],UID:null,b:{},Filters:{},Vars:{},LocalVars:{},cache:{}};Array.isArray=Array.isArray||function(a){return"[object Array]"==={}.call(a)};String.prototype.trim=String.prototype.trim||function(){for(var a=this.replace(/^\s\s*/,""),b=a.length,d=/\s/;d.test(a.charAt(--b)););return a.substring(0,b+1)};c.HTMLObject=function(a,b){this.value=a;this.attr=b};c.StringBuffer=function(){return[]};c.Node=function(){}; | ||
b,{value:d,enumerable:!0,configurable:!0,writable:!0}):a[b]=d;return a};f;var c={VERSION:[7,0,0,"beta6"],UID:null,b:{},Filters:{},Vars:{},LocalVars:{},cache:{}};Array.isArray=Array.isArray||function(a){return"[object Array]"==={}.call(a)};String.prototype.trim=String.prototype.trim||function(){for(var a=this.replace(/^\s\s*/,""),b=a.length,d=/\s/;d.test(a.charAt(--b)););return a.substring(0,b+1)};c.HTMLObject=function(a,b){this.value=a;this.attr=b};c.StringBuffer=function(){return[]};c.Node=function(){}; | ||
c.Node.prototype.length=function(){return this.value.childNodes.length};c.Node.prototype.textContent=function(){return this.value.textContent};c.DocumentFragment=function(a){this.renderMode=a;this.value=document.createDocumentFragment()};k(c.DocumentFragment,c.Node);c.DocumentFragment.prototype.appendChild=function(a){this.value.appendChild(a)};c.DocumentFragment.prototype.textContent=function(){for(var a=this.value.childNodes,b="",d=0;d<a.length;d++)b+=a[d].outerHTML||a[d].textContent;return b}; | ||
@@ -5,0 +5,0 @@ c.Element=function(a,b){this.renderMode=b;this.value=document.createElement(a)};k(c.Element,c.Node);c.Element.prototype.appendChild=function(a){this.value.appendChild(a)};c.Element.prototype.setAttribute=function(a,b){this.value.setAttribute(a,b)};c.Element.prototype.textContent=function(){return this.value.outerHTML};c.Comment=function(a,b){this.renderMode=b;this.value=document.createComment(a)};k(c.Comment,c.Node);c.Text=function(a,b){this.renderMode=b;this.value=document.createTextNode(a)};k(c.Text, |
@@ -6,3 +6,3 @@ { | ||
"main": "snakeskin.js", | ||
"version": "7.0.0-beta5", | ||
"version": "7.0.0-beta6", | ||
"license": "MIT", | ||
@@ -80,5 +80,5 @@ "author": { | ||
"through2": "^2.0.0", | ||
"typograf": "^4.3.0", | ||
"typograf": "^5.0.0", | ||
"yaspeller": "^2.0.0" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
562821
10753