Comments (4)
@m-knorr Does this happen on the latest versions of the TemplateEngineFactory and TemplateEngineTwig module? The commented markup is generated by Twig. I copied your snippet from above and can't find any errors in it - PHP should be able to parse it.
Can you check if disabling ProcessWire's FileCompiler on your twig templates solves the issue? Your issue sounds similar to this one: https://processwire.com/talk/topic/6835-module-twig-for-the-templateenginefactory/?do=findComment&comment=131897
from templateenginetwig.
@wanze Perfect, didn't know about the {# FileCompiler=0 #}
With a short test it worked for me! My Twig Files have the endig .twig, too.
Thanks for your help! Maybe there is a way to deactivate it globally!?
from templateenginetwig.
@m-knorr Thanks for the feedback, glad it works! I know it's a hack at the moment. However, there's already a pull request open which provides the needed functionality: processwire/processwire#13
I hope it's accepted soon, then I can update the module to exclude the twig templates path.
Cheers
from templateenginetwig.
@m-knorr I pushed a potential fix for this problem to the dev branch. Do you have any chance to test if it solves your issues? You'd need the newest dev branch of ProcessWire together with the dev branch of this module :) Thanks!
from templateenginetwig.
Related Issues (17)
- Deprecation warning message
- Errors with 1.1.0 HOT 10
- Strange field label HOT 6
- Remove the vendor directory HOT 2
- Doesn't work with Hanna Code? HOT 2
- Compatibility with Version Control module HOT 7
- filter trim is broken HOT 9
- TemplateEngineTwig does not appear on modules list after installation HOT 2
- FormBuilder and twig template HOT 3
- Can't use engine( please help HOT 3
- update for compatibility with PHP 7.4 HOT 2
- Support Composer 2 HOT 2
- Fix deprecation warnings for PHP 8.2 HOT 3
- Update documentation HOT 2
- Can not access ID of a FieldtypeOptions option HOT 3
- Parse Error: syntax error, unexpected ',' (line 99 of <file>) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from templateenginetwig.