mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Added test for declarations
This commit is contained in:
parent
2ae20ae431
commit
0e2cfc4c3e
@ -12,7 +12,7 @@ class Declaration extends Node {
|
||||
|
||||
return [
|
||||
builder.htmlLiteral('<?'),
|
||||
codegen.generateCode(this.declaration),
|
||||
codegen.generateCode(builder.text(this.declaration)),
|
||||
builder.htmlLiteral('?>')
|
||||
];
|
||||
}
|
||||
|
||||
1
test/autotests/render/declaration/expected.html
Normal file
1
test/autotests/render/declaration/expected.html
Normal file
@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
1
test/autotests/render/declaration/template.marko
Normal file
1
test/autotests/render/declaration/template.marko
Normal file
@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
2
test/autotests/render/declaration/test.js
Normal file
2
test/autotests/render/declaration/test.js
Normal file
@ -0,0 +1,2 @@
|
||||
exports.templateData = {};
|
||||
exports.vdomSkip = true;
|
||||
Loading…
x
Reference in New Issue
Block a user