Sha256: 35a76a3e08fec74e93b53165e122a9689338f945b768bf9ebf7157b2f2a6c0a2

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

todo:
  - helper/model extension ?

      Ro.helper(:posts) do
      end

      Ro.model(:posts) do
      end

      Post = Ro.model(:posts)

      Post.class_eval do
      end

  - a real live test suite


done:
  - load all asset urls
  - asset loading and url generation
  - ./bin/ro shell
    - binding of all nodes?
  - need source file loading
  - attribute templates
  - need relationships
    - ro.posts.related
    - ro.posts.related.tags
    - ro.posts.related[:tags]
    - ro.posts.first.related.tags
    - ro.posts.first.related[:tags]
  - to_ary should not cause loading to fire
  - node_sets
    - ro -> node_set
    - ro.posts -> node_set
    - ro.posts
  - should rollection be 'directory.ls'
  - basic lib structure
  - awesome tilt methods
  - an extremely clever cache
  - instrument logging/debugging










ro # all nodes

ro.posts  #=> set of all post nodes

ro.posts.tags #=> set of all tags related to any post

ro.tags.posts #=> set of all posts related to any tag

ro.posts{ name == 'foobar' }

ro.posts.first.tags

ro.posts.page(10, :per => 10)

ro.posts.first.url_for(:foobar)

ro/people/foo-bar/attributes.yaml
ro/people/foo-bar/attributes.yml
ro/people/foo-bar/bio.md
ro/people/foo-bar/source/a.rb
ro/people/foo-bar/assets/mugshot.png





require 'ro/model'




----

class People < Ro::Model
  root :people
end

Ro.root

Ro.nodes

def ro(*args, &block)
  Ro.nodes(*args, &block)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ro-1.1.1 notes/ara.txt