Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Showing default HTML Example #27

Closed
tomgenoni opened this Issue · 5 comments

4 participants

@tomgenoni

The screenshot example of the KSS shows the default HTML appearing after the modifiers. It doesn't appear that is showing up by default, at least not in my build. Is there a way to enable this?

@derekr

I believe the sample project isn't the same as the screenshot. The sample project seems pretty stripped down.

@derekr

I misread this issue initially. If you want to print out the sample it's just a matter of rendering @example_html in code and pre tags.

@wordofchristian

Where does the @example_html variable come from? Is it part of the documentation block?

@derekr

It comes from the call to styleguide_block here https://github.com/kneath/kss/blob/master/example/views/styleguide.erb#L2

Whatever html is provided in that template block will be turned in to @example_html when the partial https://github.com/kneath/kss/blob/master/example/views/_styleguide_block.erb is rendered.

@benschwarz
Collaborator

The example is a cut down edition, there isn't a way to get this for free. (Check kss-rails or nkss-rails for some sweet rails "styleguide almost for free" action)

@benschwarz benschwarz closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.