Releases: kaliop/twig-express
Releases · kaliop/twig-express
2.1.3
2.1.2
2.1.1
2.1.0
TwigExpress v2
BREAKING CHANGES:
- Dropped support Apache when serving in a subfolder (e.g.
http://localhost/my-twigexpress-prototype/
); use VirtualHosts, or run TwigExpress from the command line. - Removed the
_base
global variable; if you need it, redeclare it in theglobal_vars
config intwigexpress.json
. - Removed the
_get
,_post
and_cookie
global variables; use theparam()
function instead. - The
autoescape
andstrict_variables
config keys have been moved inside atwig_options
object; seedoc/config.md
for details. - Removed the second parameter for the
files()
andfolders()
functions.
New features:
- Automatic Markdown previews for files ending in
.md
. - Config:
allow_only
- whitelist of file patterns to serve. - Config:
debug_mode
- disable folder listings, source views, debug pages. - Twig:
param()
function for getting GET, POST and cookie values. - Twig: create pages using the TwigExpress design (with automatic breadcrumbs), with
{% extends twigexpress_layout() %}
.
Now with directory listings
New features:
- For requests matching a directory, TwigExpress will show a file list if there is no
index.twig
orindex.html.twig
file in a folder. - Ability to define Twig namespaces in
twigexpress.json
.
Non-feature (and hopefully non-breaking) changes: big code and documentation refactoring.
Tagging a first public release
1.0.0 doc(readme): php --server option is easier to read and memorize