Redo view "helper" concepts libgit2
authorChristian Johansen <christian@gitorious.com>
Wed, 19 Sep 2012 14:12:12 +0000 (16:12 +0200)
committerChristian Johansen <christian@gitorious.com>
Wed, 19 Sep 2012 14:12:12 +0000 (16:12 +0200)
commit3770c77a0f5576413916461bf0605c8b47709573
treea26ddb36c08d821282dd9e0ac08f314eb5cdc98f
parent222eef3679553c9da2897144e03a5844f6e77586
Redo view "helper" concepts

  - TemplateRenderer now has a #helper that accepts objects
  - A "Merger" object allows you to treat multiple object as
    one big bag of methods (in order to do mixins with instances
    rather than modules)
  - Add helpers for each core concept/git data type
  - Add tests for helpers
  - Use ref, path consistently (not path, ref)
25 files changed:
bin/dolt
lib/dolt/merger.rb [new file with mode: 0644]
lib/dolt/repo_actions.rb
lib/dolt/sinatra/actions.rb
lib/dolt/sinatra/multi_repo_browser.rb
lib/dolt/sinatra/single_repo_browser.rb
lib/dolt/template_renderer.rb
lib/dolt/view.rb
lib/dolt/view/base.rb [new file with mode: 0644]
lib/dolt/view/blob.rb [new file with mode: 0644]
lib/dolt/view/breadcrumb.rb
lib/dolt/view/object.rb [new file with mode: 0644]
lib/dolt/view/tree.rb [new file with mode: 0644]
test/dolt/merger_test.rb [new file with mode: 0644]
test/dolt/repo_actions_test.rb
test/dolt/sinatra/actions_test.rb
test/dolt/template_renderer_test.rb
test/dolt/templates/blob_test.rb [new file with mode: 0644]
test/dolt/view/blob_test.rb [new file with mode: 0644]
test/dolt/view/breadcrumb_test.rb [new file with mode: 0644]
test/dolt/view/object_test.rb [new file with mode: 0644]
test/dolt/view_test.rb
test/dolt/views/blob_test.rb [deleted file]
test/test_helper.rb
views/blob.erb