kirbysayshi/vash

Output for blocks with the commandline tool or compile API

Closed this issue · 2 comments

Using the example for vash.helpers.append:

// layout.vash
<ul>
@html.block('main-nav', function(model){
	<li><a href="/">Home</a></li>
})
</ul>

// another.vash
@html.extend('layout.vash', function(model){
	@html.append('main-nav', function(){
		<li><a href="/another">Another Link</a></li>
	})
})

If I run the commandline tool:

node_modules\.bin\vash --file="another.vash" --out="." --render

Instead of the expected

<ul>
<li><a href="/">Home</a></li>
<li><a href="/another">Another Link</a></li>
</ul>

the output I get is:

<ul>
[VASHMARK-8947656:block-main-nav]
</ul>

If I use the vash.compile API or the WebPack render-template-loader to load the template (which is what I'm mainly trying to use vash for), I get the same output that contains VASHMARK.

Is there something I'm missing?

That was it. Thanks so much!