Geoloqi's ruby framework for doing rapid web development, RAWR!
JavaScript PHP Perl Ruby ActionScript Racket
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
content
controllers
helpers
lib/ext
models
public
views
.DS_Store
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
application.rb
config.ru
config.yml
controller.rb

README.md

Caching

Cache something

begin
  @profile = Geoloqi::Cache.get_fresh(key, ttl) { 
    # This will get cached
  }
rescue
  halt 500
end

Remove something from cache

Geoloqi::Cache.delete key

Pages

# Will search the content folder to page.md
@content = Geoloqi::Pages.find "page"
# Get all pages in content/api
@content = Geoloqi::Pages.all "api"
# Get all pages in content/api
before "/api" do 
  @sidebar ||= Geoloqi::Pages.find "api/sidebar"
end