mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Added another test case related to #491 - Allow plain text parsing
This commit is contained in:
parent
4355bc0e4d
commit
3d38159795
@ -0,0 +1,3 @@
|
||||
module.exports = function codeGenerator(el, codegen) {
|
||||
return el.body;
|
||||
};
|
||||
@ -0,0 +1,4 @@
|
||||
{
|
||||
"body": "parsed-text",
|
||||
"preserve-whitespace": true
|
||||
}
|
||||
4
test/autotests/render/parsed-text-tag/expected.html
Normal file
4
test/autotests/render/parsed-text-tag/expected.html
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
Content
|
||||
More Content
|
||||
Frank
|
||||
7
test/autotests/render/parsed-text-tag/template.marko
Normal file
7
test/autotests/render/parsed-text-tag/template.marko
Normal file
@ -0,0 +1,7 @@
|
||||
var name = 'Frank';
|
||||
|
||||
<parsed-text>
|
||||
Content
|
||||
More Content
|
||||
${name}
|
||||
</parsed-text>
|
||||
Loading…
x
Reference in New Issue
Block a user