Sha256: 9fc6cf0c93efc7305f0016dd1798c1dbff0a02ca42456f9bf418ca05394ba6aa

Contents?: true

Size: 777 Bytes

Versions: 11

Compression:

Stored size: 777 Bytes

Contents

config do
  set(:models => Pathname(File.dirname(__FILE__)).join("models"))
  set(:templates => Pathname(File.dirname(__FILE__)).join("templates"))
end

view :table_of_contents do
  doc = Brief::Document.new(docs_path.join("index.md"), document_type: "outline")
  doc && doc.to_model
end

view :custom_aggregator do
  {aggregator:"custom"}
end

define "Release" do
  meta do
    name
  end
end

define "User Story" do
  meta do
    title
    status :in => %w(draft published)
    epic_title
  end

  template :file => "user_story.md.erb"

  content do
    persona "p strong:first-child"
    behavior "p strong:second-child"
    goal "p strong:third-child"
  end

  actions do
    def defined_helper_method
      true
    end

    def custom_action
      true
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
brief-1.9.11 spec/fixtures/example/brief.rb
brief-1.9.9 spec/fixtures/example/brief.rb
brief-1.9.8 spec/fixtures/example/brief.rb
brief-1.9.7 spec/fixtures/example/brief.rb
brief-1.9.6 spec/fixtures/example/brief.rb
brief-1.9.4 spec/fixtures/example/brief.rb
brief-1.9.3 spec/fixtures/example/brief.rb
brief-1.9.2 spec/fixtures/example/brief.rb
brief-1.9.1 spec/fixtures/example/brief.rb
brief-1.9.0 spec/fixtures/example/brief.rb
brief-1.8.12 spec/fixtures/example/brief.rb