[keycloak-dev] Why do we use Beans in Freemarker templates?

Bill Burke bburke at redhat.com
Mon Nov 16 09:29:45 EST 2015


Needs to be cleaned up eventually.  Just a pain for documentation since 
the Auth SPI exposes it.

On 11/16/2015 9:27 AM, Stian Thorgersen wrote:
> It comes from the olden days when we were doing a SaaS solution as we
> wanted to reduce what was possible from templates.
>
> It makes less sense now, although can be useful in the cases when you
> need some logic or formatting, or the values aren't directly available
> from the models.
>
> On 16 November 2015 at 15:21, Bill Burke <bburke at redhat.com
> <mailto:bburke at redhat.com>> wrote:
>
>     Why do we use Beans in Freemarker templates?  Most of the information
>     can be obtained from Model objects.  Any reason Model objects can't be
>     accessed directly from .ftl files?
>
>     --
>     Bill Burke
>     JBoss, a division of Red Hat
>     http://bill.burkecentral.com
>     _______________________________________________
>     keycloak-dev mailing list
>     keycloak-dev at lists.jboss.org <mailto:keycloak-dev at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


More information about the keycloak-dev mailing list