expand_next_js_template_no_imports

Function expand_next_js_template_no_imports 

Source
pub fn expand_next_js_template_no_imports<'a>(
    content: &str,
    template_path: &str,
    next_package_dir_path: &str,
    replacements: impl IntoIterator<Item = (&'a str, &'a str)>,
    injections: impl IntoIterator<Item = (&'a str, &'a str)>,
    imports: impl IntoIterator<Item = (&'a str, Option<&'a str>)>,
) -> Result<String>
Expand description

Same as expand_next_js_template, but does not enforce that at least one relative import is present and rewritten. This is useful for very small templates that only use template variables/injections and have no imports of their own.