Skip to content

jehope/hbs-html-tag-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hbs-html-tag-helpers

Manipulate html structure with json data and handlebars.

Example: Handlebars template

{{#each data}}
	{{createTagBlock}} 
{{/each}}

Data(json)

"data" : [
	{ "tag" : "h1", "value" : "Email:"},
	{ "tag" : "a" , "value" : "[email protected]"},
	{ "tag" : "h1", "value" : "Twitter"},
	{ "tag" : "a" , "value" : "@twitter", "href" : "http://twitter.com/twitter"},
	{ "tag" : "h1", "value" : "Address"},
	{ "tag" : "p" , "value" : "Joe Yo<br/>1234 addy st<br/>Brooklyn, NY 30033"},
	{ "tag" : "p" , "value" : "929.333.1111"},
	{ "tag" : "img", "value" : "http://placehold.it/1000x400&text=Image"}
]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published