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 Context#include #973

Merged
merged 1 commit into from Nov 4, 2016
Merged

Add Context#include #973

merged 1 commit into from Nov 4, 2016

Conversation

@ddfreyne
Copy link
Member

@ddfreyne ddfreyne commented Nov 3, 2016

This adds Context#include, which makes it possible to call include directly from the shell command:

% bundle exec nanoc shell
Loading site… done
> include Nanoc::Helpers::HTMLEscape
=> #<Class:…>
> link_to 'not where you want to go', @items['/404.*']
=> "<a href=\"/404.html\">not where you want to go</a>"
@ddfreyne ddfreyne added this to the 4.3.8 milestone Nov 4, 2016
@ddfreyne ddfreyne added this to the 4.3.8 milestone Nov 4, 2016
@ddfreyne ddfreyne merged commit c12a256 into master Nov 4, 2016
1 check passed
Loading
@ddfreyne ddfreyne deleted the shell-include-helper branch Nov 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant