smarthbs/ts/smarthbs.template.ts
2017-03-19 17:14:28 +01:00

10 lines
307 B
TypeScript

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))
}