Luke Towers
dca6128501
Change Twig template loading fallbacks
...
Previously:
- registered Laravel view file
- attempt to load file as a CMS partial
Now:
- registered Laravel view file
- valid CMS partials
- any file that Twig can access (from the project root) rendered as a plain twig template (but with support for the CMS twig environment)
Fixes 80aab47f04 (commitcomment-42223643) , https://github.com/octobercms/october/issues/5261#issuecomment-691235167
2020-09-11 15:47:49 -06:00
Dan Harrin
967fd02d8c
Fix minor spelling errors and inconsistencies ( #4543 )
...
Credit to @DanHarrin.
2019-08-15 11:39:26 +08:00
Ben Thomson
a59d3b83eb
Code quality clean up ( #4449 )
...
Credit to @bennothommo
2019-07-18 08:50:37 -06:00
Luke Towers
936525f99b
Always provide a string to TwigSource. Fixes #4209 .
2019-03-27 13:17:26 -06:00
Luke Towers
c86bec7f08
Replace deprecated Twig class references, refs: #4209 .
2019-03-27 13:15:17 -06:00
Luke Towers
10aa5a6296
Documented cms.template.processTwigContent
2018-10-11 19:28:17 -06:00
Arthur Kushman
c78b3ef786
Code formatting changes ( #3363 )
...
Code formatting improvements submitted by @arthurkushman.
2018-03-22 10:55:13 -06:00
Samuel Georges
2b5709adb9
Bump Twig to v2, refit code
2017-05-13 09:34:20 +10:00
Samuel Georges
8724566849
Implement support for twig macro/import
...
Fixes #2526
2016-12-07 20:58:25 +11:00
Samuel Georges
6e7fa7de88
Allow CmsObjects to define their own Twig cache key
2016-03-21 13:42:03 +11:00
Samuel Georges
24a620e890
Convert CmsObject and CmsCompoundObject to use Halcyon
...
getFullPath -> getFilePath
2016-03-12 15:32:16 +11:00
Samuel Georges
d65bc5c2ad
Introduce a CmsObject interface
...
This will be useful to decouple ComponentPartial and Asset objects from their Halcyon counterparts
An Asset is technically not a template, it may be hosted via a CDN or others
A ComponentPartial is also different, it is read only and doesn't require caching
2016-03-09 20:51:04 +11:00
Samuel Georges
5a70cec7a2
Improved fix for #1672
2016-01-02 13:41:57 +11:00
Samuel Georges
ecb54ff92c
Rollback #1672
2016-01-02 13:40:32 +11:00
DQ Sully
2fae5a30b9
Fix Twig Caching
...
When October would load a file from its changed source, Twig would not see the message until it had gone. See Cms\Classes\Loader->isFresh. This meant a template would not update unless you deleted the Twig cache, or that template's TTL expired. Fix: add another variable (freshness) that would only change after being observed, and accurately reflected if a template's source had been modified
2015-12-28 10:09:15 -07:00
Samuel Georges
302f397835
Add cms.twig.processTwigContent hook to Twig loader
2015-06-05 17:23:38 +10:00
Stefan Talen
9c1dcb0dba
Updating modules/cms/twig
2014-10-11 01:42:04 +02:00
Sam Georges
bfb5099910
Typo
2014-05-18 09:20:14 +10:00
Pascal Borreli
459c8e0cfa
Fixed typos
2014-05-17 18:08:01 +02:00
Sam Georges
71a5dd67ab
Welcome to the world, October :-)
2014-05-14 23:24:20 +10:00