Simon Wisselink 7408c18cdc WIP for performance improvements.
Removed $smarty->_current_file and $smarty->allow_ambiguous_resources properties, both unused. Removed public Source::filepath property.
Cached an Compiled files (and Exceptions) no longer rely on the filepath being set. Removed explicit tests for cached and compiled filenames. The exact implementation is not important. Added tests for compile_check property, fixing a file_exists check that would always be done on source template files, even when compile_check was true. Remove code duplication between Source en Config classes. Added a local $_smarty_current_dir to the generated code files for backwards compatability for {$smarty.current_dir}.
2023-02-03 15:50:31 +01:00
2023-02-03 15:50:31 +01:00
2023-02-03 15:50:31 +01:00
2023-02-03 15:50:31 +01:00
2021-01-05 22:23:13 +01:00
2022-12-23 14:03:05 +01:00
2023-01-10 17:35:34 +01:00
2022-08-16 22:43:47 +02:00
2023-02-03 15:50:31 +01:00

Smarty template engine

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic.

CI

Documentation

Read the documentation to find out how to use it.

Requirements

Smarty v5 can be run with PHP 7.2 to PHP 8.2.

Installation

Smarty versions 3.1.11 or later can be installed with Composer.

To get the latest stable version of Smarty use:

composer require smarty/smarty

More in the Getting Started section of the docs.

Description
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic.
Readme 27 MiB
Languages
PHP 91.1%
Smarty 6.2%
Yacc 2.4%
Dockerfile 0.1%
Shell 0.1%