Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow acessing :pre snapshot in item itself #538
Fix for #537.
The implementation of the fix in this PR is conceptually the same as in the aforementioned bug, but refactored.
CC @nanoc/contributors @jethrogb
referenced this pull request
Mar 10, 2015
@bobthecow Hm, re-reading the original question, I think my answer is misleading.
From within the item itself, using
When accessing the compiled content from another item, accessing
These moving pre-snapshots and post-snapshots are difficult to reason about and one of the reasons why they’ll be gone in nanoc 4!
Does it make
%main#content.container - toc = extract_toc(yield, :depth => @item[:toc_depth])