mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-14 20:00:39 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0325eacddf | ||
|
|
a21fcf6f87 | ||
|
|
7bb2ee2213 | ||
|
|
b24582c2c4 |
Vendored
-2
@@ -1671,7 +1671,6 @@ var formatCodes = {
|
||||
},
|
||||
z: function z(d) {
|
||||
var tz = d.getTimezoneOffset() / 60 * 100;
|
||||
console.log('tz', tz);
|
||||
return (tz > 0 ? '-' : '+') + _number.pad(Math.abs(tz), 4);
|
||||
},
|
||||
'%': function _() {
|
||||
@@ -1887,7 +1886,6 @@ function shouldTrimRight(token, inRaw, options) {
|
||||
function trimLeft(token, greedy) {
|
||||
if (!token || token.type !== 'html') return;
|
||||
|
||||
console.log('trimming', token.value);
|
||||
var rLeft = greedy ? /\s+$/g : /[\t\r ]*$/g;
|
||||
token.value = token.value.replace(rLeft, '');
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -24,7 +24,7 @@ var filters = {
|
||||
'ceil': v => Math.ceil(v),
|
||||
'concat': (v, arg) => Array.prototype.concat.call(v, arg),
|
||||
'date': (v, arg) => {
|
||||
let date = v
|
||||
var date = v
|
||||
if (v === 'now') {
|
||||
date = new Date()
|
||||
} else if (_.isString(v)) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "liquidjs",
|
||||
"version": "2.1.0",
|
||||
"version": "2.1.2",
|
||||
"description": "A Liquid template engine for Node.js and browsers, with all shopify/liquid features.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -163,7 +163,6 @@ var formatCodes = {
|
||||
},
|
||||
z: function (d) {
|
||||
var tz = d.getTimezoneOffset() / 60 * 100
|
||||
console.log('tz', tz)
|
||||
return (tz > 0 ? '-' : '+') + _number.pad(Math.abs(tz), 4)
|
||||
},
|
||||
'%': function () {
|
||||
|
||||
@@ -33,7 +33,6 @@ function shouldTrimRight (token, inRaw, options) {
|
||||
function trimLeft (token, greedy) {
|
||||
if (!token || token.type !== 'html') return
|
||||
|
||||
console.log('trimming', token.value)
|
||||
var rLeft = greedy ? /\s+$/g : /[\t\r ]*$/g
|
||||
token.value = token.value.replace(rLeft, '')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user