fis-kernel
Advanced tools
Comparing version 1.9.8 to 1.9.9
@@ -105,3 +105,3 @@ /* | ||
var map = exports.lang = (function(){ | ||
var keywords = ['require', 'embed', 'uri', 'dep'], | ||
var keywords = ['require', 'embed', 'uri', 'dep', 'jsEmbed'], | ||
LD = '<<<', RD = '>>>', | ||
@@ -151,3 +151,3 @@ qLd = fis.util.escapeReg(LD), | ||
case '__inline': | ||
m = map.embed.ld + value + map.embed.rd; | ||
m = map.jsEmbed.ld + value + map.jsEmbed.rd; | ||
break; | ||
@@ -426,2 +426,3 @@ case '__uri': | ||
case 'embed': | ||
case 'jsEmbed': | ||
info = fis.uri(value, file.dirname); | ||
@@ -443,3 +444,3 @@ var f; | ||
ret = f.getContent(); | ||
if(file.isJsLike && !f.isJsLike){ | ||
if(type === 'jsEmbed' && !f.isJsLike){ | ||
ret = JSON.stringify(ret); | ||
@@ -446,0 +447,0 @@ } |
{ | ||
"name" : "fis-kernel", | ||
"description" : "fis kernel.", | ||
"version" : "1.9.8", | ||
"version" : "1.9.9", | ||
"author" : "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage" : "http://fis.baidu.com/", |
75491
2269