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

Add some more docs on include_relative #2884

Merged
merged 3 commits into from
Sep 9, 2014

Conversation

gjtorikian
Copy link
Member

Well, more docs, and one more test, to ensure that include_relative ../<path> really truly does not work.

@@ -30,6 +28,10 @@ def initialize(tag_name, markup, tokens)
validate_params if @params
end

def syntax_example
"{% include file.ext param='value' param2='value' %}"
Copy link
Member

Choose a reason for hiding this comment

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

why not

"{% #{tag_name} file.ext param='value' param2='value' %}"

? Just have to ensure tag_name (or @tag_name) is set properly in initialize and you're goooood to go. No duplication!

This lets us use just one syntax_example method for both classes.
@gjtorikian
Copy link
Member Author

I don't have the power to, because I'm not the owner, but it looks like Travis barfed on one set of tests and needs a restart. All other builds went green.

@parkr
Copy link
Member

parkr commented Sep 8, 2014

G'restarted. Also LOL @ "Travis barfed" 😂

parkr added a commit that referenced this pull request Sep 9, 2014
@parkr parkr merged commit 4fb6e1c into jekyll:master Sep 9, 2014
parkr added a commit that referenced this pull request Sep 9, 2014
@gjtorikian gjtorikian deleted the improve-docs-for-include-relative branch September 9, 2014 19:01
@awolfe76 awolfe76 mentioned this pull request Oct 3, 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.

None yet

3 participants