-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Render Liquid in CoffeeScript files #2830
Render Liquid in CoffeeScript files #2830
Conversation
Whoops, forgot to fix the Cucumber tests. I'll get to that as soon as I can. 😊 |
LGTM 😄 @gjtorikian, can I get a 👍 or 👎 ? |
@kansaichris would you also please add docs to Thank you! ✨ |
Yeah, adding docs would be huge. |
Here's the CI build error, for what it's worth: features/drafts.feature:16 Scenario: Don't preview a draft ......There was an error highlighting your code:
---
---
// start content
.my-definition
font-size: 1.2em
While attempting to convert the above code, Pygments.rb returned an unacceptable value.
This is usually a timeout problem solved by running `jekyll build` again.
Liquid Exception: Pygments.rb returned an unacceptable value when attempting to highlight some code. in _docs/assets.md |
Done. 😄 @parkr For future reference, do you prefer documentation updates to be submitted in the same pull request as the affected code or separately? |
I prefer documentation updates to be submitted in the same pull request. 😄 Check out the first line of CONTRIBUTING.markdown. |
the <a href="/docs/templates/">Liquid template syntax</a>, you | ||
will need to place <code>{% raw %}</code> and | ||
<code>{% endraw %}</code> tags around your code.</p> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✨
How could I have missed that. 😩 Should I add anything else here, or does this look like it's good to go? |
Looks good to me! 😄 |
@parkr Could I get a merge, or are we waiting on @gjtorikian? 😉 |
I have nothing to do! I can't merge it. |
I just wanted a 👍 or 👎 from Garen haha it's cool man, I'll merge tonight. |
👍 😁 all this process! |
Sorrryyyyy!! |
Thanks @parkr! ❤️ |
Closes #2792. Is it really this simple?
Incidentally, it seems a bit odd for
render_with_liquid?
to always returntrue
, but I guess it's nice to keep the function around just in case we need to disable Liquid for some other file type in the future./cc @gjtorikian and @parkr for review 🙇