Skip to content

Geoloqi's ruby framework for doing rapid web development, RAWR!

Notifications You must be signed in to change notification settings

geoloqi/velociraptor

Repository files navigation

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

About

Geoloqi's ruby framework for doing rapid web development, RAWR!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published