Converts static HTML templates to JavaScript strings.