Skip to content

Instantly share code, notes, and snippets.

@awei01
Last active September 26, 2015 02:09
Show Gist options
  • Save awei01/acc28074c3d767dcf2a3 to your computer and use it in GitHub Desktop.
Save awei01/acc28074c3d767dcf2a3 to your computer and use it in GitHub Desktop.

Define a simple property

Access in template is provided via property name

HTML

<template name="parent">
	<h2>parent template</h2>
	<p>{{ simpleProperty }}</p>
</template>

JS (client-only)

Template.parent.helpers({
	simpleProperty: "i'm a simple property"
});

Result


parent template
i'm a simple property

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment