clean up
This commit is contained in:
9
ts/smarthbs.template.ts
Normal file
9
ts/smarthbs.template.ts
Normal 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))
|
||||
}
|
||||
Reference in New Issue
Block a user