Skip to main content

template

Function template 

Source
pub fn template(source: &str, kotlin: bool) -> String
Expand description

Templates use JSON-compatible quoted strings; Kotlin additionally needs dollar signs escaped to preserve JavaScript template literals.