T
T
T4-1002015-03-06 14:51:50
symfony
T4-100, 2015-03-06 14:51:50

How to configure the mustache bundle?

For the twig template engine, you can specify the following config. data

twig:
    debug:            "%kernel.debug%"
    strict_variables: "%kernel.debug%"
    paths:
            "%kernel.root_dir%/../../web/admin": admin_templates
            "%kernel.root_dir%/../../web": templates

And then use the admin_templates variable in the render function
How to do the same for mustache

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Senkevich, 2015-03-06
@ssenkevich

According to the description , something like this:

mustache:
    globals:
        foo: 'bar'
        ...
    template_class_prefix: '__Mustache_'
    template_base_class: 'Mustache_Template'
    cache: '%kernel.cache_dir%/mustache'
    loader_id: 'mustache.loader'
    partials_loader_id: 'mustache.loader'
    charset: '%kernel.charset%'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question