You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing knowledge gaps in previewing a Freemarker template on a browser before deploying a theme as a JAR archive. For instance, if I have developed login-reset-otp.ftl template, how can I preview it on a browser without ideally building a jar archive and mounting it in a Keycloak docker container?
Assumption
I thought that Freemarker autogenerates the HTML files in the root folder but they seem separate. So, how do I generate an HTML file for login-reset-otp.ftl template? This follows issue #75
Note:
I have tried pnpm test but it fails with several errors, including:
FreeMarker template error:
The following has evaluated to null or missing:
==> realm.name [in template "document.ftl" at line 28, column 71]
----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
The text was updated successfully, but these errors were encountered:
waynemorphic
changed the title
[Question] How to preview a freemarker template on a broswer?
[Question] How to preview a freemarker template on a browser?
Jul 15, 2024
Problem
I am facing knowledge gaps in previewing a Freemarker template on a browser before deploying a theme as a JAR archive. For instance, if I have developed
login-reset-otp.ftl
template, how can I preview it on a browser without ideally building a jar archive and mounting it in a Keycloak docker container?Assumption
I thought that Freemarker autogenerates the HTML files in the root folder but they seem separate. So, how do I generate an HTML file for
login-reset-otp.ftl
template? This follows issue #75Note:
I have tried
pnpm test
but it fails with several errors, including:The text was updated successfully, but these errors were encountered: