Skip to content
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

Open
USvER opened this issue Jan 4, 2014 · 8 comments
Open

Twig.js update? #32

USvER opened this issue Jan 4, 2014 · 8 comments

Comments

@USvER
Copy link

USvER commented Jan 4, 2014

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

@adam-lynch
Copy link

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.

@USvER
Copy link
Author

USvER commented Jan 4, 2014

@USvER
Copy link
Author

USvER commented Jan 4, 2014

Oh... two different "twig.js" projects... and why this one was chosen to be in the bundle...

PS:
I was using swig.js with my recent nodejs project, and i was more or less happy...
But i'm totaly unhappy with this bundle... =\

@USvER
Copy link
Author

USvER commented Jan 7, 2014

@adam-lynch How did you add runtime filter? Can't get it to work... #34

@USvER
Copy link
Author

USvER commented Jan 7, 2014

@adam-lynch Same for Compile time... Can't get a compiler to configure it...

@adam-lynch
Copy link

@USvER hmm, I don't remember exactly. See my issue back from back then (#18), it might help.

I just noticed a few other issues now about adding filters. Hmm.

@adam-lynch
Copy link

Oh, I meant to say that I don't have access to that code anymore.

@USvER
Copy link
Author

USvER commented Jan 7, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants