-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twig.js update? #32
Comments
The date filter doesn't exist in Twig.js as far as I know. See issue #11 in the actual Twig.js repo. It can't really be implemented with the exact same functionality as Twig (PHP) without a lot of code. I had to add my own runtime filter. It's not too hard to do. I just kept it simple and only supported the date character parameters I needed. |
I think you are wrong! https://github.com/justjohn/twig.js/blob/master/twig.js#L1255 |
Oh... two different "twig.js" projects... and why this one was chosen to be in the bundle... PS: |
@adam-lynch How did you add runtime filter? Can't get it to work... #34 |
@adam-lynch Same for Compile time... Can't get a compiler to configure it... |
Oh, I meant to say that I don't have access to that code anymore. |
@adam-lynch Assetic gives me 500 error on templates that use not existing at compile-time filters #34, and #18 does not give me a clue why it's happen... |
There is missing filters. Like date format and number format... Looking at latest Twig.js sources i can see them... But can't use in my project...
Manualy updating Twig.js file don't help... It just different file... And it is highly obfuscated... even in dev version...
The text was updated successfully, but these errors were encountered: