feat.js
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -203,9 +203,8 @@ module.exports = (html, cmo, options, blb) => { | ||
//remove first el of contentt[0] | ||
contentt[0].shift(); | ||
contentt[0][0] = "<a>" + contentt[0][0] + "</a>"; | ||
//set contentt[0] to last element contentt[0] | ||
contentt[0] = contentt[0][contentt[0].length - 1]; | ||
//join contentt[0] | ||
contentt[0] = contentt[0].join(">"); | ||
contentt[0].trim(); | ||
contentt[0] = "<a>" + contentt[0] + "</a>"; | ||
contentt.pop(); | ||
@@ -217,2 +216,3 @@ | ||
console.log(contentt); | ||
let returnVal = comp.code(tagAttrs, contentt.join("\n"), options, blb, registerComponent); | ||
@@ -224,3 +224,2 @@ | ||
returnVal = returnVal.substring(1); | ||
//remove start to end from sp | ||
@@ -227,0 +226,0 @@ sp.splice(start, end - start + 1, returnVal); |
{ | ||
"name": "feat.js", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"main": "src/index.js", | ||
@@ -9,3 +9,3 @@ "scripts": { | ||
}, | ||
"homepage":"https://github.com/Feat-js/feat#readme", | ||
"homepage": "https://github.com/Feat-js/feat#readme", | ||
"repository": { | ||
@@ -12,0 +12,0 @@ "type": "git", |
@@ -1,2 +0,1 @@ | ||
const { render } = require('express/lib/response'); | ||
let fs = require('fs'); | ||
@@ -105,2 +104,2 @@ | ||
module.exports = Feat; | ||
module.exports = Feat; |
@@ -11,3 +11,3 @@ let express = require('express'); | ||
app.get('/', function (req, res) { | ||
res.render('/test/pages/index', { email, posts, fn_test: true }); | ||
res.render('/test/pages/index', { email, posts }); | ||
}); | ||
@@ -14,0 +14,0 @@ |
Sorry, the diff of this file is not supported yet
86334