We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This library seems to only be setup to render view from files. Is there no compile method exposed?
The text was updated successfully, but these errors were encountered:
You can use library Handlebars compiler
example:
import { HandlebarsJS } from 'https://deno.land/x/handlebars/mod.ts'; // or import HandlebarsJS from "https://esm.sh/[email protected]"; function rendering(source: string, context?: Record<string, unknown>, compilerOptions ): Promise<string> { // deno-lint-ignore no-explicit-any const template = (HandlebarsJS as any).compile( source, compilerOptions, ); return template(context); }
Sorry, something went wrong.
No branches or pull requests
This library seems to only be setup to render view from files. Is there no compile method exposed?
The text was updated successfully, but these errors were encountered: