HTML reuse, create template
- by nanonerd
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 !