h1
Frequently asked questions
h2
Pug-php with pugjs option
h2
Why do I get error with UPPER_CASE variables?
h2
How to use namespaces in a pug template?
h2
How to run JS scripts inside templates?
h2
How to use helper functions with pugjs engine?
h2
How to disable errors on production?
h2
How to includes files dynamically?
h2
How to handle internationalization?
h2
How to clear the cache?
h2
What is the equivalent of Twig filter?
h2
How to solve Warning: include() read X bytes more data than requested (Y read, Z max)?
h2
How to solve Maximum function nesting level of 'X' reached?
h2
Should I use render or renderFile?
h2
How to debug a code from the documentation not working in my app?
h2
Watch changes and autocompile
h2
Automatically reload the browser on change
h2
Unit tests and coverage
h2
Extending core classes
h2
Equivalents for pugjs options
h2
In your favorite framework
h2
Installation from scratch
h2
Use JavaScript expressions
h3
Block append / prepend
h3
String Interpolation, Escaped
h3
String Interpolation, Unescaped
h3
Including Filtered Text
h3
Why a template engine?
h3
Why upgrade/migrate to Phug?
h3
Attribute Interpolation
h3
Switch expression language inside template
h3
dependencies_storage string
h3
formatter_class_name string
h3
mixin_merge_mode string
h3
compiler_modules array
h3
formatter_modules array
h3
filter_resolvers array
h3
php_token_handlers array
h3
on_new_format callable
h3
on_dependency_storage callable
h3
on_state_enter callable
h3
on_state_leave callable
h3
on_state_store callable
h3
error_reporting callable | int
h3
error_handler callable
h3
error_context_lines integer
h3
execution_max_time integer
h3
enable_profiler boolean
h3
default_doctype string
h3
attributes_mapping array
h3
Array.prototype emulation
h3
String.prototype emulation
h3
pretty boolean | string
h3
shared_variables / globals array
h3
cache_dir boolean | string
h3
compiler_class_name string
h3
parser_class_name string
h3
lexer_class_name string
h3
lexer_class_name string
h3
lexer_state_class_name string
h3
parser_state_class_name string
h3
element_handlers array
h3
assignment_handlers array
h3
attribute_assignments array
h3
get_file_contents callable
h3
up_to_date_check boolean
h3
keep_base_name boolean
h3
locator_class_name string
h3
scope_each_variables boolean | string
h3
adapter_class_name string
h3
indent_width indent_width
h3
allow_mixed_indent integer
h3
render-file (or display-file)
h3
render-directory (or display-directory)
h3
compile-directory (or cache-directory)
h4
Before formatting process
h4
After formatting process