19 lines
309 B
Markdown
19 lines
309 B
Markdown
## 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
|
|
}
|
|
```
|