Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A UI / Component Framework and Application Architecture for Backbone.js which uses twitter's bootstrap for styling
CoffeeScript JavaScript Ruby
Latest commit dd47f6a @datapimp Update
Updating readme with links to the documentation and examples.  Adding examples for using from the CDN.
Failed to load latest commit information.
app/assets fixing bug in state_model
bin updating code sync
downloads updating release
lib simplifying the engine, removing hogan assets support, removing rake …
public adding static source map of project
site updating release
spec adding cardview specs
tutorials adding tutorials, adding framework documentation to project harness-a
vendor/assets updating release
views Reorganizing project to conform to sprockets asset pipeline standard
.gitignore git ignoring sublime artifacts
.rvmrc checkpoint
CHANGELOG Updting loadScript util, updating docs site
Gemfile updating listen dependency
Gemfile.lock updating listen dependency
Guardfile removing compilation from guard process Adding license Update
ROADMAP Adding roadmap for 1.0 release
app.rb Adding significant amounts of documentation cleaning up rack config
luca.gemspec updating listen dependency

Component Driven Architecture with Luca.JS

Luca is a component architecture framework based on Backbone.js, which includes many development helpers, classes, patterns, and tools needed to build scalable and clean single page applications.

It uses twitter bootstrap compatible markup and css naming conventions, making it possible to generate completely styled user interfaces with JSON alone.

Documentation Site and Examples

API Documentation

Component Examples

This is the app that runs the documentation site:

Sample App

Using the Library from CDN

Include the Javascripts:

<script type='text/javascript' src='//'></script>
<script type='text/javascript' src='//'></script>

Include the CSS:

<link href='//' rel='stylesheet'>
<link href='//' rel='stylesheet'>
<link href='//' rel='stylesheet'>

Using With Rails Asset Pipeline

  # Gemfile
  gem 'luca', :git => "" 

In your css manifest:

   *= require 'luca'

All Javascript Dependencies:

  //= require 'luca/dependencies'
  //= require 'luca'

Your App:

  Luca.initialize('App', {
    // will look in window.AppBootstrap for an object
    // keyed on your collection's cache_keys() for automatically
    // populating collections on page load
    modelBootstrap: true,
    // will look in window.AppBaseParams for an object
    // or function used to determine the query parameters to
    // be sent on every request
    baseParams: true

  JST['home'] = function() {
    // content

    template: "home",
    events: {
      "click .menu-handler" : "clickMenuHandler"
    clickMenuHandler: function(e){


    // will use the Application classes internal controller
    // to make the home 'page' active in the viewport
      "" : "home"  
      name: "home"
      type: "home"

    (new AppNamespace.Application).boot()

Rails Generator

To generate Luca application skeleton run:
rails generate luca:application <app_name>
This will generate a controller, view, route, and the Luca application structure under assets/javascripts/


You will need to run 'rake release:all' to compile/minify the asset which gets released.

Thanks To

@jashkenas, @davidgtonge, @twitter, @madrobby, et al.


@tjbladez, @grilix, @nick-desteffen

Something went wrong with that request. Please try again.