This commit is contained in:
2017-03-19 17:14:28 +01:00
parent 9297711793
commit 34cfe010f7
18 changed files with 191 additions and 121 deletions

9
ts/smarthbs.template.ts Normal file
View File

@@ -0,0 +1,9 @@
import * as plugins from './smarthbs.plugins'
/**
* get a template for a file on disk
*/
export let getTemplateForFile = async (filePathArg: string) => {
let filePathAbsolute = plugins.path.resolve(filePathArg)
return plugins.handlebars.compile(plugins.smartfile.fs.toStringSync(filePathAbsolute))
}