Skip to content

shllg/wwl-curo-cms

Repository files navigation

Curo

  • Install Summary
  • Version 0.0.1

Setup

Add to Gemfile as local Git-Rep

bundle config local.curo <path to your local repo>
bundle config disable_local_branch_check true

Migrations

Copy and run curo migrations:

rails g curo:install

Styles and Javascripts

To run curo cms, you need to include the curo css and js in admin mode:

= curo_stylesheet_link_tag
= curo_javascript_include_tag

Curo Navigation Bar

To run the curo navigation bar in admin mode, include following line at the top of in your body-tag:

= curo_frame do
  yield

Appending Curo - Javascript

Own App / Router

To append the App (Backbone Router):

class MyApp extends Curo.AppClass

  routes: ->
    _.extend(super(), {
        # own routes here
        'personalRoute': 'personalMethod'
      }
    )

  initialize: ->
    super()
    # own implementations here

  personalMethod: ->
    # own route implementation here

Never forget to call super() on overwriten functions.

And then assign App.

Curo.AppClass = MyApp

Javascript documentation

See https://github.com/coffeedoc/codo

Installation:

npm install -g codo

Generate docs

codo

View docs

open doc/js/index.html



nginx

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors