rename expression.js -> syntax.js

This commit is contained in:
harttle
2016-10-24 23:11:37 +08:00
parent cb75e69122
commit 6d20f7aa8e
8 changed files with 81 additions and 81 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
const Exp = require('./expression.js');
const Syntax = require('./syntax.js');
const Promise = require('any-promise');
var render = {
@@ -89,7 +89,7 @@ var render = {
evalOutput: function(template, scope, opts) {
if(!scope) throw new Error('unable to evalOutput: scope undefined');
var val = Exp.evalExp(template.initial, scope);
var val = Syntax.evalExp(template.initial, scope);
template.filters.some(filter => {
if (filter.error) {
if (opts.strict_filters) {