Skip to content

Commit

Permalink
Update THEME.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaniwaki committed Jul 6, 2014
1 parent 7549df7 commit fc7f29f
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions THEME.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,19 @@ end

Insert the environment string into tags or attributes.

e.g.
### e.g.

`<div data-title="foo">foo</div>` can be `<div data-title="(env) foo">foo</div>`
#### by tag name

`Rack::DevMark::Theme::Tag.new(attribute: 'data-title')`

`<div data-title="foo">foo</div>` be `<div data-title="(env) foo">foo</div>`

#### by attribute

`Rack::DevMark::Theme::Tag.new(name: 'h1')`

`<h1>foo</h1>` can be `<h1="foo">(env) foo</h1>`

### options

Expand All @@ -40,15 +50,11 @@ e.g.

## title

Just add the environment string into the page title.

![title](misc/theme/title.png)

e.g.
Subclass of tag theme specifically made for title tag. It just adds the environment string into the page title.

`My Homepage` on development env will be `(development) My Homepage`

options are the same as tag theme.
![title](misc/theme/title.png)

### options

Expand Down

0 comments on commit fc7f29f

Please sign in to comment.