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

Render Liquid in CoffeeScript files #2830

Merged
merged 6 commits into from
Aug 29, 2014

Conversation

kansaichris
Copy link

Closes #2792. Is it really this simple?

Incidentally, it seems a bit odd for render_with_liquid? to always return true, 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 🙇

@kansaichris
Copy link
Author

Whoops, forgot to fix the Cucumber tests. I'll get to that as soon as I can. 😊

@parkr
Copy link
Member

parkr commented Aug 26, 2014

LGTM 😄 @gjtorikian, can I get a 👍 or 👎 ?

@parkr
Copy link
Member

parkr commented Aug 26, 2014

@kansaichris would you also please add docs to site/_docs/assets.md? A big warning note about liquid and template languages (like mustache) would be great. There may also be a note about coffeescript not being rendered w/Liquid that can be removed.

Thank you! ✨

@gjtorikian
Copy link
Member

Yeah, adding docs would be huge.

@kansaichris
Copy link
Author

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

@kansaichris
Copy link
Author

would you also please add docs to site/_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?

@parkr
Copy link
Member

parkr commented Aug 27, 2014

@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>{&#37; raw &#37;}</code> and
<code>{&#37; endraw &#37;}</code> tags around your code.</p>
</div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kansaichris
Copy link
Author

Check out the first line of CONTRIBUTING.markdown.

How could I have missed that. 😩

Should I add anything else here, or does this look like it's good to go?

@parkr
Copy link
Member

parkr commented Aug 28, 2014

Should I add anything else here, or does this look like it's good to go?

Looks good to me! 😄

@kansaichris
Copy link
Author

@parkr Could I get a merge, or are we waiting on @gjtorikian? 😉

@gjtorikian
Copy link
Member

I have nothing to do! I can't merge it.

@parkr
Copy link
Member

parkr commented Aug 29, 2014

I just wanted a 👍 or 👎 from Garen haha it's cool man, I'll merge tonight.

@gjtorikian
Copy link
Member

👍 😁 all this process!

@parkr
Copy link
Member

parkr commented Aug 29, 2014

Sorrryyyyy!!

@parkr parkr merged commit 190ab7f into jekyll:master Aug 29, 2014
@kansaichris kansaichris deleted the render-liquid-in-coffeescript branch August 29, 2014 02:35
@kansaichris
Copy link
Author

Thanks @parkr! ❤️

parkr added a commit that referenced this pull request Aug 29, 2014
@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Liquid tags aren't processed in CoffeeScript files
4 participants