KD2 Framework  History of src/lib/KD2/Smartyer.php of 86764e2ca15ce28b

History of the file that is called src/lib/KD2/Smartyer.php at checkin 86764e2ca15ce28b

2023-06-23
09:55
Smartyer: Make sure 'null' escaping does not escape file: [e3b35a4d08] check-in: [575b430e8b] user: bohwaz, branch: trunk, size: 37310 [annotate] [blame] [check-ins using] [diff]
2023-05-30
09:28
Smartyer: Create compile dir if it doesn't exist file: [ad482bca9a] check-in: [ced2691b90] user: bohwaz, branch: trunk, size: 37307 [annotate] [blame] [check-ins using] [diff]
2023-05-15
11:23
Smartyer: Accept comma as separator in modifier arguments list file: [aad294ad5b] check-in: [292dd1c813] user: bohwaz, branch: trunk, size: 37244 [annotate] [blame] [check-ins using] [diff]
2023-02-21
20:45
Smartyer: handle non-string include files file: [e5fb3796ce] check-in: [77d73be554] user: bohwaz, branch: 7.3, size: 37226 [annotate] [blame] [check-ins using] [diff]
2023-02-17
11:40
Smartyer: Handle .. in include file paths file: [4fdcac5546] check-in: [a5044680ef] user: bohwaz, branch: 7.3, size: 37104 [annotate] [blame] [check-ins using] [diff]
2023-01-27
17:58
Smartyer: fix templateAssign compile function to only return when the function is actually called 'assign' file: [721fb4de46] check-in: [0e80a811d5] user: bohwaz, branch: 7.3, size: 36791 [annotate] [blame] [check-ins using] [diff]
2023-01-26
22:49
Smartyer: Fix assign function so that the variable is also defined locally file: [02fc2486fd] check-in: [9a44e5dfd0] user: bohwaz, branch: 7.3, size: 36711 [annotate] [blame] [check-ins using] [diff]
2023-01-07
20:15
Smartyer: handle isset correctly for magic variables file: [0012cd1240] check-in: [72ed202259] user: bohwaz, branch: 7.3, size: 36204 [annotate] [blame] [check-ins using] [diff]
2022-09-13
21:36
Smartyer: cascade variables assigned to parent file: [0a2bbfe6b7] check-in: [0882bbd49b] user: bohwaz, branch: 7.3, size: 36005 [annotate] [blame] [check-ins using] [diff]
2022-09-05
09:05
Smartyer: Fix ::class not applicable to dynamic classes file: [921bfe834e] check-in: [b64c7c5729] user: bohwaz, branch: 7.3, size: 35824 [annotate] [blame] [check-ins using] [diff]
2022-09-02
20:55
Smartyer: be smarter about template build from template (eg. includes) file: [c181760d63] check-in: [0bff4fe3c8] user: bohwaz, branch: 7.3, size: 35820 [annotate] [blame] [check-ins using] [diff]
16:03
Smartyer: use same object and don't re-create a new object every time file: [4434f238a3] check-in: [473bf7803e] user: bohwaz, branch: 7.3, size: 35634 [annotate] [blame] [check-ins using] [diff]
2022-08-08
23:46
Smartyer and Brindille: fix removal of slashes in strings file: [bd54071e40] check-in: [21e5da0d05] user: bohwaz, branch: 7.3, size: 35692 [annotate] [blame] [check-ins using] [diff]
2022-07-27
21:29
Smartyer: Fix reference to $this variable file: [a386953add] check-in: [d5595e92c6] user: bohwaz, branch: 7.3, size: 35665 [annotate] [blame] [check-ins using] [diff]
20:35
Make Smartyer compile functions more simple, without hacks for PHP 5.x as it is no longer supported. file: [4fe665cc97] check-in: [083b512718] user: bohwaz, branch: 7.3, size: 35650 [annotate] [blame] [check-ins using] [diff]
2022-05-13
12:06
Fix PHP 8.1 notice file: [cdcc110536] check-in: [011bbb8cd1] user: bohwaz, branch: 7.3, size: 35923 [annotate] [blame] [check-ins using] [diff]
11:42
Smartyer: use a simpler way to fetch the relative path of an included template file: [523f4062a1] check-in: [2cbf457d1d] user: bohwaz, branch: 7.3, size: 35917 [annotate] [blame] [check-ins using] [diff]
2022-02-09
23:53
Smartyer: add support for relative path in include file: [797c9a203f] check-in: [56c236d182] user: bohwaz, branch: 7.3, size: 35966 [annotate] [blame] [check-ins using] [diff]
2022-02-02
10:33
Manage PHP 8.1 depreciation of strftime file: [04c680cd5f] check-in: [691240b66e] user: bohwaz, branch: 7.3, size: 35692 [annotate] [blame] [check-ins using] [diff]
2022-02-01
22:41
Fix warnings from PHPStan file: [51ec0c2b9f] check-in: [211153007c] user: bohwaz, branch: 7.3, size: 35691 [annotate] [blame] [check-ins using] [diff]
22:30
Fix PHP8.1 depreciations file: [70adb622c8] check-in: [f67f21c232] user: bohwaz, branch: 7.3, size: 35684 [annotate] [blame] [check-ins using] [diff]
2021-11-23
21:47
Smartyer: try to fix for Windows file: [e7e7140212] check-in: [f6f127ffbf] user: bohwaz, branch: 7.3, size: 35646 [annotate] [blame] [check-ins using] [diff]
2021-11-04
22:27
Smartyer: handle relative paths for Windows targets file: [daec388052] check-in: [892ff930e3] user: bohwaz, branch: 7.3, size: 35827 [annotate] [blame] [check-ins using] [diff]
2021-11-03
16:39
Smartyer: Fix escape for XML file: [8dfefc9f0d] check-in: [1bcea525b1] user: bohwaz, branch: 7.3, size: 35512 [annotate] [blame] [check-ins using] [diff]
2021-10-19
00:45
Make public some useful methods in Smartyer file: [56c09a0b08] check-in: [3d4beccbc7] user: bohwaz, branch: 7.3, size: 35499 [annotate] [blame] [check-ins using] [diff]
2021-10-12
21:26
Smartyer: fix template path for some Windows setups file: [ab53d06a1d] check-in: [475c7190ca] user: bohwaz, branch: 7.3, size: 35517 [annotate] [blame] [check-ins using] [diff]
2021-02-12
13:42
Smartyer: Fix issue with objects using magic getter file: [ff78aaa40c] check-in: [29d379d428] user: bohwaz, branch: 7.3, size: 35336 [annotate] [blame] [check-ins using] [diff]
13:41
Smartyer: fix issue with magic getter objects file: [fb9ce2b34c] check-in: [86764e2ca1] user: bohwaz, branch: trunk, size: 36398 [annotate] [blame] [check-ins using] [diff]
2021-01-13
01:22
Smartyer: Fix atomicity file: [c40eda8aa3] check-in: [ef9a02ec7a] user: bohwaz, branch: 7.3, size: 35346 [annotate] [blame] [check-ins using] [diff]
2020-11-27
11:39
Smartyer: remove legacy methods file: [4f5586dfe8] check-in: [d5ec9b2ae1] user: bohwaz, branch: 7.3, size: 35355 [annotate] [blame] [check-ins using] [diff]
2020-11-04
01:10
Smartyer: implement closing compile blocks, finish partial custom block implementation file: [067ddece57] check-in: [cb25b478ff] user: bohwaz, branch: 7.3, size: 36720 [annotate] [blame] [check-ins using] [diff]
2020-09-01
10:15
Smartyer: fix issue with literal blocks file: [758d491f8f] check-in: [5a34e78508] user: bohwaz, branch: trunk, size: 36408 [annotate] [blame] [check-ins using] [diff]
2020-08-28
08:46
Smartyer: Fix issue with comments file: [f1c9a8154e] check-in: [209e2526df] user: bohwaz, branch: 7.3, size: 36299 [annotate] [blame] [check-ins using] [diff]
2020-06-21
23:01
Merge back with stable branch file: [88c09caf66] check-in: [fafd240e2e] user: bohwaz, branch: 7.3, size: 36298 [annotate] [blame] [check-ins using] [diff]
22:55
Smartyer: fix issue with JS RegExp back-references in literals and some other issues file: [434c855e3c] check-in: [27dbec33fc] user: bohwaz, branch: trunk, size: 36285 [annotate] [blame] [check-ins using] [diff]
2020-04-21
11:31
Smartyer: fix rare issue with parameter type file: [dbe303d0f4] check-in: [4b536f5bb0] user: bohwaz, branch: 7.3, size: 36098 [annotate] [blame] [check-ins using] [diff]
2020-01-30
23:14
Fix some issues with PHP 7.4 file: [bd73b93cad] check-in: [06c3f53895] user: bohwaz, branch: trunk, size: 36085 [annotate] [blame] [check-ins using] [diff]
2019-04-09
14:13
Smartyer: fix escape to hexentity file: [b378e07275] check-in: [00a8929f78] user: bohwaz, branch: trunk, size: 36074 [annotate] [blame] [check-ins using] [diff]
2019-03-14
21:06
Smartyer: don't truncate to zero when using the word cutter file: [a49dea68dd] check-in: [bce002e856] user: bohwaz, branch: trunk, size: 36075 [annotate] [blame] [check-ins using] [diff]
16:02
Smartyer: accept convertable objects in escape, accept datetime in date_format modifier file: [dbb833b5d1] check-in: [3c42e9c568] user: bohwaz, branch: trunk, size: 36025 [annotate] [blame] [check-ins using] [diff]
2019-02-19
14:54
Fix multiple PHPStan issues file: [2abc12d95c] check-in: [fe7cb3e32a] user: bohwaz, branch: trunk, size: 35863 [annotate] [blame] [check-ins using] [diff]
2019-01-22
10:35
Smartyer: fail correctly when the template file name is a directory file: [b1f38e033f] check-in: [bdba474e89] user: bohwaz, branch: trunk, size: 35880 [annotate] [blame] [check-ins using] [diff]
2018-12-10
22:40
Smartyer: limit recursion level file: [89fff336a1] check-in: [d3199e27ed] user: bohwaz, branch: trunk, size: 35844 [annotate] [blame] [check-ins using] [diff]
2018-12-06
15:09
Update license text file: [44931fdd1d] check-in: [f10a5314d2] user: bohwaz, branch: trunk, size: 35731 [annotate] [blame] [check-ins using] [diff]
2018-09-18
18:25
Smartyer: use source line in exceptions, not source position, should fix issue with incorrect source line when using literal blocks file: [c43942b7a0] check-in: [9cc378c670] user: bohwaz, branch: trunk, size: 36435 [annotate] [blame] [check-ins using] [diff]
2018-08-18
21:33
Smartyer:
  • deprecate static methods setCompileDir and setTemplateDir, replaced with ->setCompiledDir and ->setTemplatesDir, makes it easier to have multiple template contexts
  • add method setNamespace
file: [cf21d7e623] check-in: [614d8ab5fa] user: bohwaz, branch: trunk, size: 36364 [annotate] [blame] [check-ins using] [diff]
20:10
Smartyer: make sure foreach/for/while blocks don't have double parenthesis as it creates a parse error, make sure the template file exists and is readable too file: [2cc1cfe343] check-in: [3c5ea70779] user: bohwaz, branch: trunk, size: 34684 [annotate] [blame] [check-ins using] [diff]
2018-06-20
15:38
Smartyer: Use isset instead of property_exists, to be able to use __get() and __isset() magic methods file: [2a1dbb4c50] check-in: [3287c33ba6] user: bohwaz, branch: trunk, size: 34272 [annotate] [blame] [check-ins using] [diff]
2018-06-14
14:40
Fix issue with if statements like "($a == 1) || ($b == 1)" that generated parse errors. Add generic {assign} function. file: [1670ff8cc2] check-in: [30bf85b9ab] user: bohwaz, branch: trunk, size: 34282 [annotate] [blame] [check-ins using] [diff]
11:21
Add ability to assign a namespace to templates, and make sure local variables are passed to included templates file: [61fae99a15] check-in: [adf44c1ac7] user: bohwaz, branch: trunk, size: 33626 [annotate] [blame] [check-ins using] [diff]
2017-09-05
00:35
Smartyer: This pagination function is a bit large for staying in the base class file: [0cf469541e] check-in: [ea3a47ba74] user: bohwaz, branch: trunk, size: 33296 [annotate] [blame] [check-ins using] [diff]
2017-08-30
03:18
Renamed src/lib/kd2/Smartyer.php → src/lib/KD2/Smartyer.php. Rename lib directory "kd2" to "KD2" (uppercase) file: [07391ec3a2] check-in: [233135bb59] user: bohwaz, branch: trunk, size: 34856 [annotate] [blame] [check-ins using] [diff]
2017-08-29
04:26
Smartyer: Fix truncate file: [07391ec3a2] check-in: [bff46a3209] user: bohwaz, branch: dev, size: 34856 [annotate] [blame] [check-ins using] [diff]
2017-05-29
23:15
Smartyer: compiled templates should be named .php to force them to execute, but should fail if executed outside of context + fix some bugs with loops file: [4f859f55b7] check-in: [f9ba6904e8] user: bohwaz, branch: dev, size: 34855 [annotate] [blame] [check-ins using] [diff]
2017-05-16
02:43
Smartyer: add getTemplateVars method file: [f366e90ff8] check-in: [915c764996] user: bohwaz, branch: dev, size: 34373 [annotate] [blame] [check-ins using] [diff]
2017-05-14
08:22
Smartyer: Don't prepend templates_dir for phar and absolute paths file: [18bc837989] check-in: [bd7b638ff1] user: bohwaz, branch: dev, size: 33965 [annotate] [blame] [check-ins using] [diff]
2017-05-09
04:52
Smartyer: fix bug with multiline literals file: [ff61826aa3] check-in: [aa9b701ffc] user: bohwaz, branch: dev, size: 33728 [annotate] [blame] [check-ins using] [diff]
2017-05-08
05:28
Smartyer: Remove literal blocks etc. before parsing, this fixes a bug with literals containing js code file: [2e483de7b1] check-in: [823334d799] user: bohwaz, branch: dev, size: 33726 [annotate] [blame] [check-ins using] [diff]
2017-05-03
03:56
Smartyer: allow arrays and objects for json escape file: [01dc78614b] check-in: [ee0ee64e7a] user: bohwaz, branch: dev, size: 32747 [annotate] [blame] [check-ins using] [diff]
2017-02-15
22:11
Smartyer: templates directory shouldn't be writeable, just readable file: [d02d4a16a8] check-in: [e9f004dcc0] user: bohwaz, branch: dev, size: 32726 [annotate] [blame] [check-ins using] [diff]
2017-02-14
20:29
Smartyer: Fix line count for error parsing, definitely file: [9121f837da] check-in: [349ae64cef] user: bohwaz, branch: dev, size: 32727 [annotate] [blame] [check-ins using] [diff]
2017-02-13
22:15
Smartyer: fix error parsing line number file: [b630b7576f] check-in: [00f19633a4] user: bohwaz, branch: dev, size: 32713 [annotate] [blame] [check-ins using] [diff]
2017-01-19
03:19
Allow static closures as compile functions file: [187352a1bc] check-in: [37012cd399] user: bohwaz, branch: dev, size: 32721 [annotate] [blame] [check-ins using] [diff]
01:20
Add some aliases file: [4de45dc07a] check-in: [6639d0e0b5] user: bohwaz, branch: dev, size: 32397 [annotate] [blame] [check-ins using] [diff]
2016-12-13
03:14
Add pagination function file: [3154a75aa3] check-in: [b03d4095ba] user: bohwaz, branch: dev, size: 32333 [annotate] [blame] [check-ins using] [diff]
2016-10-03
00:47
Smartyer: don't overwrite $name variable file: [77381af413] check-in: [6f4c68e09b] user: bohwaz, branch: dev, size: 30665 [annotate] [blame] [check-ins using] [diff]
2016-08-16
05:24
Smartyer: Fix static call to precompileAll() method file: [1c7d09a80c] check-in: [08623bf610] user: bohwaz, branch: dev, size: 30672 [annotate] [blame] [check-ins using] [diff]
04:43
Smartyer: correct method name file: [10a40c0908] check-in: [8c9c476aef] user: bohwaz, branch: dev, size: 30665 [annotate] [blame] [check-ins using] [diff]
2016-08-12
03:25
Smartyer: add |cat modifier (concatenation), allow to ignore invalid blocks (like javascript) file: [6184fee34f] check-in: [9f6c384a18] user: bohwaz, branch: dev, size: 30663 [annotate] [blame] [check-ins using] [diff]
2016-08-11
21:14
Smartyer: rename cache_path to cache_dir and templates_path to templates_dir + add method to precompile all templates file: [bbc2901f39] check-in: [8c0ca26a34] user: bohwaz, branch: dev, size: 29554 [annotate] [blame] [check-ins using] [diff]
2016-07-22
05:31
Smartyer: add ability to extend the template functionality at compile time file: [1db1770b72] check-in: [7755af1473] user: bohwaz, branch: dev, size: 28750 [annotate] [blame] [check-ins using] [diff]
02:29
Smartyer: rename methods to set paths to be compatible with Smarty file: [c86ad41026] check-in: [5322f9f79b] user: bohwaz, branch: dev, size: 28077 [annotate] [blame] [check-ins using] [diff]
2016-07-21
03:53
Smartyer: * Add the option to change the auto-escaping type * More performance optimization * Add fromString method to build from a template string file: [74630ac994] check-in: [3d372c6b9e] user: bohwaz, branch: dev, size: 28078 [annotate] [blame] [check-ins using] [diff]
2016-07-20
05:15
Smartyer: first rewrite after first PoC file: [3f274d8011] check-in: [2b4cbb1501] user: bohwaz, branch: dev, size: 26338 [annotate] [blame] [check-ins using] [diff]
2016-07-15
05:24
Smartier: access class constants with magic vars file: [6b4f7bba91] check-in: [c1d4d2e9ea] user: bohwaz, branch: dev, size: 17794 [annotate] [blame] [check-ins using] [diff]
05:06
Smartyer: Better handling of magic variables, default modifiers, heritage, includes and more file: [62e5f2cb91] check-in: [52596e5f5b] user: bohwaz, branch: dev, size: 17511 [annotate] [blame] [check-ins using] [diff]
2016-07-14
05:31
Added: Smartyer template engine file: [7628cdfe3d] check-in: [6a0d84674f] user: bohwaz, branch: dev, size: 11651 [annotate] [blame] [check-ins using]