Giter Club home page Giter Club logo

Comments (4)

wanze avatar wanze commented on July 24, 2024

@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.

m-knorr avatar m-knorr commented on July 24, 2024

@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.

wanze avatar wanze commented on July 24, 2024

@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.

wanze avatar wanze commented on July 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.