Skip to content

Instantly share code, notes, and snippets.

@bradzo
Created December 25, 2015 01:13
Show Gist options
  • Save bradzo/93175f5c23582ef047a9 to your computer and use it in GitHub Desktop.
Save bradzo/93175f5c23582ef047a9 to your computer and use it in GitHub Desktop.
Dynamic (?) input elements for a Meteor app..
hello.html
<template name="hello">
<input {{attributes}} />
</template>
hello.js
Template.hello.helpers({
attributes: function () {
return {
type: "textbox",
name: "myName",
class: "myClass anotherClass",
placeholder: "enter some text here",
value: 123
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment