packages start...
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
## tpl
|
||||
|
||||
```ts
|
||||
interface TplPackage {
|
||||
/**
|
||||
* execute a template code and return result
|
||||
*
|
||||
* @param code template code
|
||||
* @param contextData template context map
|
||||
*/
|
||||
execute(
|
||||
code: string,
|
||||
contextData?: {
|
||||
[key: string]: any
|
||||
}
|
||||
): string
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user