-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Custom filters not working with include:filter #2440
Labels
Milestone
Comments
Would also like to add a new test case to handle this, but I'm not familiar with how you generate them? |
I opened a ticket in pugjs/pug-filters#18 for the addition of a test case. Custom filter testing is a bit more complicated. |
Re-opening until someone has confirmed that the update still works with builtin filters. |
Really fixed in pug-filters@1.2.3/pug@2.0.0-beta4. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
1. Make a custom filter
2. Use it in a block. Works fine.
...if you run that, the page reads 'testing 123', and here's the console:
3. Use it together with
include
. Doesn't work....if you run that, the page just contains the full path to
myfile.txt
, not the contents! Here's the console:When you use
include:myfilter
, Pug should read the file and pass the contents to the filter, not pass the filename, right?The text was updated successfully, but these errors were encountered: