{{#if x}}
	<canvas ref:foo data-x='true'></canvas>
{{else}}
	<canvas ref:foo data-x='false'></canvas>
{{/if}}