I’m trying out tink_web and tink_template. I have one template (haxe flavour mtt) and I want to inject the result of another template into it. Something like this:
@:get('/')
public function home()
return Views.renderLayout(
"Home page title",
"Normal content"
);
@:get('/about')
public function about()
return Views.renderLayout(
"About page title",
Views.about()
//I tried haxe.Resource.getString("about") but got the same result
);
My main template has something like:
<div class="content" data-uf-partial="panel2Partial">
::viewContent::
</div>
and viewContent is the 2nd parameter passed to renderLayout(). The About template is a chunk of static HTML right now, and is currently rendering with escaped HTML for the tags. How can I prevent this? I did read the part in the documentation related to escaping but couldn’t understand how to convert that to my needs.