Developed with love by KnpLabs Hire us for your project!
364

twig-bundle

by symfony

The Twig Bundle provides configuration for using Twig in your applications.

Oݕ^q{kx!l2'&˫'اuaiQz++,!l"r)|)|.zƧvǧt-m+a(2'2'n["^K)|z,+m+a(2'2'

Copyright (c) 2004-2018 Fabien Potencier

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
twig:
exception_controller: twig.controller.exception::showAction
form_themes:

# Default:
- form_div_layout.html.twig

# Example:
- MyBundle::form.html.twig
globals:

# Examples:
foo: "@bar"
pi: 3.14

# Prototype
key:
id: ~
type: ~
value: ~
autoescape: name
autoescape_service: ~
autoescape_service_method: ~
base_template_class: ~ # Example: Twig\Template
cache: %kernel.cache_dir%/twig
charset: %kernel.charset%
debug: %kernel.debug%
strict_variables: false
auto_reload: ~
optimizations: ~

# The default path used to load templates
default_path: %kernel.project_dir%/templates
paths:

# Prototype
paths: []

# The default format options used by the date filter
date:
format: F j, Y H:i
interval_format: %d days

# The timezone used when formatting dates, when set to null, the timezone returned by date_default_timezone_get() is used
timezone: ~

# The default format options for the number_format filter
number_format:
decimals: 0
decimal_point: .
thousands_separator: ,
  • Deprecate bundle:controller:action and service:method notation
    By fabpot, 5 months ago
  • Merge branch '4.0'
    By nicolas-grekas, 5 months ago
  • Merge branch '3.4' into 4.0
    By nicolas-grekas, 5 months ago
  • minor #26165 do not mock the container builder in tests (xabbuh)
    By nicolas-grekas, 5 months ago
  • do not mock the container builder in tests
    By xabbuh, 5 months ago
  • Merge branch '4.0'
    By nicolas-grekas, 5 months ago
  • Merge branch '3.4' into 4.0
    By nicolas-grekas, 5 months ago
  • bug #26119 [TwigBundle][WebProfilerBundle] Fix JS collision (ro0NL)
    By fabpot, 5 months ago
  • Merge branch '4.0'
    By nicolas-grekas, 5 months ago
  • Merge branch '3.4' into 4.0
    By nicolas-grekas, 5 months ago
  • Merge branch '2.8' into 3.4
    By nicolas-grekas, 5 months ago
  • Merge branch '2.7' into 2.8
    By nicolas-grekas, 5 months ago
  • Merge branch '4.0'
    By xabbuh, 5 months ago
  • [TwigBundle][WebProfilerBundle] Fix JS collision
    By ro0NL, 5 months ago
  • Merge branch '3.4' into 4.0
    By xabbuh, 5 months ago
  • do not mock the container builder in tests
    By xabbuh, 5 months ago
  • do not mock the container builder or definitions
    By xabbuh, 5 months ago
  • fixed CS
    By fabpot, 5 months ago
  • bug #25756 [TwigBundle] Register TwigBridge extensions first (fancyweb)
    By fabpot, 5 months ago
  • [TwigBundle] Register TwigBridge extensions first
    By fabpot, 5 months ago
  • Deprecating "false" as default value of "strict_variable" under Twig configuration
    By yceruto, 5 months ago
  • Merge branch '4.0'
    By fabpot, 5 months ago
  • Merge branch '3.4' into 4.0
    By fabpot, 5 months ago
  • Merge branch '3.3' into 3.4
    By fabpot, 5 months ago
  • Merge branch '2.8' into 3.3
    By fabpot, 5 months ago
  • Merge branch '2.7' into 2.8
    By fabpot, 5 months ago
  • Disable CSP header on exception pages only in debug
    By , 5 months ago
  • Merge branch '4.0'
    By nicolas-grekas, 6 months ago
  • Merge branch '3.4' into 4.0
    By nicolas-grekas, 6 months ago
  • Merge branch '3.3' into 3.4
    By nicolas-grekas, 6 months ago