add getTemplateForString
This commit is contained in:
@@ -7,3 +7,10 @@ export let getTemplateForFile = async (filePathArg: string) => {
|
||||
let filePathAbsolute = plugins.path.resolve(filePathArg)
|
||||
return plugins.handlebars.compile(plugins.smartfile.fs.toStringSync(filePathAbsolute))
|
||||
}
|
||||
|
||||
/**
|
||||
* get a template for string
|
||||
*/
|
||||
export let getTemplateForString = async (fileStringArg: string) => {
|
||||
return plugins.handlebars.compile(fileStringArg)
|
||||
}
|
||||
|
Reference in New Issue
Block a user