Sha256: d4d0468f93877aaab5e831b43a0612dc5f1e28c3fa4d7b7f76442daca84ceaf8

Contents?: true

Size: 599 Bytes

Versions: 44

Compression:

Stored size: 599 Bytes

Contents

class Brief::Page
  include Brief::Model

  meta do
    title
  end

  content do
    title "h1:first-of-type"
    paragraph "p:first-of-type"
    yaml_data "pre[lang='yaml'] code", :serialize => :yaml
    yaml "pre[lang='yaml'] code", :serialize => :yaml
  end
end

__END__

@@ example
---
  type: page
  title: Example Page
---

# This is the title of the page

this is the first paragraph

## other heading

below is some yaml.  you can embed data under a heading, if it is relevant to that heading.

```yaml
setting: value
```

@@ template

<% if object.title %>
# <%= object.title %>
<% end %>

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
brief-1.17.14 spec/fixtures/example/models/page.rb
brief-1.17.13 spec/fixtures/example/models/page.rb
brief-1.17.12 spec/fixtures/example/models/page.rb
brief-1.17.11 spec/fixtures/example/models/page.rb
brief-1.17.10 spec/fixtures/example/models/page.rb
brief-1.17.9 spec/fixtures/example/models/page.rb
brief-1.17.8 spec/fixtures/example/models/page.rb
brief-1.17.7 spec/fixtures/example/models/page.rb
brief-1.17.5 spec/fixtures/example/models/page.rb
brief-1.17.4 spec/fixtures/example/models/page.rb
brief-1.17.3 spec/fixtures/example/models/page.rb
brief-1.17.2 spec/fixtures/example/models/page.rb
brief-1.17.1 spec/fixtures/example/models/page.rb
brief-1.17.0 spec/fixtures/example/models/page.rb
brief-1.16.2 spec/fixtures/example/models/page.rb
brief-1.16.1 spec/fixtures/example/models/page.rb
brief-1.16.0 spec/fixtures/example/models/page.rb
brief-1.15.5 spec/fixtures/example/models/page.rb
brief-1.15.4 spec/fixtures/example/models/page.rb
brief-1.15.3 spec/fixtures/example/models/page.rb