Function rs_web_component::add_template
source · pub fn add_template(template_id: String, template_content: String)
Expand description
Creates a template element with the specified content
§Arguments
template_id
- An id of a templatetemplate_content
- A string representation of a content without the Template tag. Can be validated/sanitized with some great libs https://crates.io/search?q=sanitize%20html