mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Marko v3: Moved over test for scanned custom tags
This commit is contained in:
parent
1ed8881b4d
commit
0460830088
3
test/fixtures/taglib/scanned-tags/scanned-a/renderer.js
vendored
Normal file
3
test/fixtures/taglib/scanned-tags/scanned-a/renderer.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = function render(input, out) {
|
||||
out.write('scanned-a: Hello ' + input.name);
|
||||
};
|
||||
1
test/fixtures/taglib/scanned-tags/scanned-b/template.marko
vendored
Normal file
1
test/fixtures/taglib/scanned-tags/scanned-b/template.marko
vendored
Normal file
@ -0,0 +1 @@
|
||||
scanned-b: Hello ${data.name}
|
||||
8
test/fixtures/taglib/scanned-tags/scanned-c/marko-tag.json
vendored
Normal file
8
test/fixtures/taglib/scanned-tags/scanned-c/marko-tag.json
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"target-property": "NAME"
|
||||
}
|
||||
}
|
||||
}
|
||||
3
test/fixtures/taglib/scanned-tags/scanned-c/renderer.js
vendored
Normal file
3
test/fixtures/taglib/scanned-tags/scanned-c/renderer.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = function render(input, out) {
|
||||
out.write('scanned-c: Hello ' + input.NAME);
|
||||
};
|
||||
11
test/fixtures/taglib/scanned-tags/scanned-d/template.marko
vendored
Normal file
11
test/fixtures/taglib/scanned-tags/scanned-d/template.marko
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<!--
|
||||
TAG = {
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"target-property": "NAME"
|
||||
}
|
||||
}
|
||||
}
|
||||
-->
|
||||
scanned-d: Hello ${data.NAME}
|
||||
12
test/fixtures/taglib/scanned-tags/scanned-e/renderer.js
vendored
Normal file
12
test/fixtures/taglib/scanned-tags/scanned-e/renderer.js
vendored
Normal 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);
|
||||
};
|
||||
14
test/fixtures/taglib/scanned-tags/scanned-f/renderer.js
vendored
Normal file
14
test/fixtures/taglib/scanned-tags/scanned-f/renderer.js
vendored
Normal 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);
|
||||
};
|
||||
3
test/fixtures/taglib/scanned-tags/scanned-g/index.js
vendored
Normal file
3
test/fixtures/taglib/scanned-tags/scanned-g/index.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
exports.renderer = function(input, out) {
|
||||
out.write('scanned-g: Hello ' + input.name);
|
||||
};
|
||||
3
test/fixtures/taglib/scanned-tags/scanned-h/index.js
vendored
Normal file
3
test/fixtures/taglib/scanned-tags/scanned-h/index.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
exports.renderer = function(input, out) {
|
||||
out.write('scanned-h: Hello ' + input.firstName);
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user