HTML reuse, create template
Posted
by
nanonerd
on Stack Overflow
See other posts from Stack Overflow
or by nanonerd
Published on 2013-07-01T22:48:03Z
Indexed on
2013/07/01
23:05 UTC
Read the original article
Hit count: 178
After about a year doing Asp.net web forms, I stepped out (for the most part) from the .net world.
I'm now working on a webapp that uses a lot of client side scripting and uses WebAPI for data access.
I have a HTML section that allows note taking. I would like to make this HTML section into a template that I can reuse elsewhere on the site (e.g., insert this piece of HTML code into another web page).
I'm a bit befuddled on how to go about this. Think of my problem as trying to create a "user control" in asp.net web forms ... only that I am not using web forms. Just good old fashioned HTML, CSS, Javascript, jquery, and knockout. Conceptually, I'd think that others have been in the same spot as myself.
Can anyone elaborate a solution or at least provide some pointers? Thanks !
© Stack Overflow or respective owner