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

ignore_paths causing error #259

Open
halcarleton opened this issue Mar 14, 2016 · 0 comments
Open

ignore_paths causing error #259

halcarleton opened this issue Mar 14, 2016 · 0 comments

Comments

@halcarleton
Copy link

When I try to exclude files using ignore_paths I get this error:

(erb):1:in `get_binding': undefined local variable or method `rendered_example' for #<Hologram::TemplateVariables:0x000000011c71d0> (NameError)

I have not edited any of the included templates/assets and am not using any custom renderers. When I remove ignore_paths from the config it works fine.

Here's my files

Config

source: ./public
ignore_paths:
  - "*.scss"
destination: ./public/styleguide
documentation_assets: ./public/_doc_assets
code_example_templates: ./public/_code_example_templates
index: basics
nav_level: all
exit_on_warnings: false

CSS

(I replaced the backticks with single quotes because I couldn't figure out how to escape them)

/*doc

---
title: Buttons
name: button
category: Basics

---

Button styles can be applied to any element. Typically you'll want
to use either a `<button>` or an `<a>` element:

'''html_example
<button class="btn">Click</button> <a
class="btn" href="#">Click</a>
'''

*/
.btn {
  display: inline-block;
  background: #bada55;
  border: 4px solid #383838;
  padding: 1em; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant