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

Reduce sass filtered items dependencies #306

Merged
merged 2 commits into from Apr 23, 2013

Conversation

gpakosz
Copy link
Member

@gpakosz gpakosz commented Apr 18, 2013

This pull requests contains two commits:

  • to make Item#raw_filename avaialble on text items
  • to make Sass filter use item.raw_filename instead of item[:content_filename]

Use item.raw_filename instead of item[:content_filename] to prevent Sass filter
from creating a dependency on every item in the site.
denisdefreyne added a commit that referenced this pull request Apr 23, 2013
@denisdefreyne denisdefreyne merged commit 939dc14 into nanoc:master Apr 23, 2013
@denisdefreyne
Copy link
Member

I don’t like giving special meaning to attributes (in this case, :content_filename) but I think the advantages (significantly less dependencies) outweigh the drawbacks.

In any case, nanoc 4.0 will make this obsolete when identifiers will be the same as filenames… once I get to that. :)

@gpakosz gpakosz deleted the reduce_sass_filter_dependencies branch April 23, 2013 20:38
denisdefreyne added a commit that referenced this pull request Sep 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants