Is your feature request related to a problem? Please describe.
When generating template, we would like to have custom args like in command line
Describe the solution you'd like
Something like
in template.ts
import { name } from 'jsr:@tmpl/args'
declare module "jsr:@tmpl/args" {
options: {
name: string
}
}
export default json`
{
"name": "${name}"
}
`
$> deno run -A jsr:@tmpl/gen --name=test < template.ts
{
"name": "test"
}
Is your feature request related to a problem? Please describe.
When generating template, we would like to have custom args like in command line
Describe the solution you'd like
Something like
in template.ts