Marko v3: Moved over test for scanned custom tags

This commit is contained in:
Patrick Steele-Idem 2016-01-11 10:19:20 -07:00
parent 1ed8881b4d
commit 0460830088
12 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,3 @@
module.exports = function render(input, out) {
out.write('scanned-a: Hello ' + input.name);
};

View File

@ -0,0 +1 @@
scanned-b: Hello ${data.name}

View File

@ -0,0 +1,8 @@
{
"attributes": {
"name": {
"type": "string",
"target-property": "NAME"
}
}
}

View File

@ -0,0 +1,3 @@
module.exports = function render(input, out) {
out.write('scanned-c: Hello ' + input.NAME);
};

View File

@ -0,0 +1,11 @@
<!--
TAG = {
"attributes": {
"name": {
"type": "string",
"target-property": "NAME"
}
}
}
-->
scanned-d: Hello ${data.NAME}

View File

@ -0,0 +1,12 @@
exports.TAG = {
"attributes": {
"name": {
"type": "string",
"target-property": "NAME"
}
}
};
module.exports = function render(input, out) {
out.write('scanned-e: Hello ' + input.NAME);
};

View File

@ -0,0 +1,14 @@
/*
TAG = {
"attributes": {
"name": {
"type": "string",
"target-property": "NAME"
}
}
}
*/
module.exports = function render(input, out) {
out.write('scanned-f: Hello ' + input.NAME);
};

View File

@ -0,0 +1,3 @@
exports.renderer = function(input, out) {
out.write('scanned-g: Hello ' + input.name);
};

View File

@ -0,0 +1,3 @@
exports.renderer = function(input, out) {
out.write('scanned-h: Hello ' + input.firstName);
};