mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Marko v3: invoke if test
This commit is contained in:
parent
f00d17bc20
commit
c934d63be3
14
test/fixtures/compiler/autotest/invoke-if/expected.js
vendored
Normal file
14
test/fixtures/compiler/autotest/invoke-if/expected.js
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
function create(__helpers) {
|
||||
var str = __helpers.s,
|
||||
empty = __helpers.e,
|
||||
notEmpty = __helpers.ne,
|
||||
escapeXml = __helpers.x;
|
||||
|
||||
return function render(data, out) {
|
||||
if (true) {
|
||||
console.log("hello");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
(module.exports = require("marko").c(__filename)).c(create);
|
||||
1
test/fixtures/compiler/autotest/invoke-if/template.marko
vendored
Normal file
1
test/fixtures/compiler/autotest/invoke-if/template.marko
vendored
Normal file
@ -0,0 +1 @@
|
||||
<invoke console.log('hello') if(true)/>
|
||||
Loading…
x
Reference in New Issue
Block a user