(function() { window.Sandbox = { views: {}, collections: {}, models: {} }; Luca.registry.addNamespace('Sandbox.views'); Luca.Collection.namespace = Sandbox.collections; }).call(this); (function() { Luca.templates || (Luca.templates = {}); Luca.templates["main"] = function(obj){var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('
\n

Want to build apps with Backbone?

\n

This is a collection of application design components that you should use to build your next large backbone.js application.

\n

It combines the elegance and simplicity of backbone.js and bootstrap.css, with the experience of developers who have been building single page javascript apps since you were a baby.

\n \n Download\n \n \n Build a component\n \n
\n
\n
\n
\n
\n

Composite Application Architecture

\n
\n
\n
\n
\n

Component Driven Design

\n

Luca is a collection of common components needed to build large single page applications. Luca provides base classes for Model, View, and Collection classes which you can choose to extend where needed. Luca also provides an extensive library of application building components and UI elements which you can piece together in a variety of ways to build responsive, and snappy single page apps.

\n
\n
\n

Backbone and Luca work together

\n

Luca is not a replacement for Backbone, it is a smart use of Backbone\'s core classes. Large apps require layers of abstraction and patterns for communication between various components, Luca provides these for you.

\n

Like Backbone, you only have to use what you need.

\n
\n
\n

Relies on good patterns

\n

We have extracted all of the common patterns and optimizations we have learned over the course of a year developing several large applications. Using Luca allows you to leverage the power of Backbone.js but only focus on what makes your app unique.

\n
\n \n \'Fork\n \n
\n
\n
\n

Develop Apps Faster

\n
\n
\n
\n
\n

Development Tools

\n

If you enable the Luca development tools, you have access to things like an in browser Coffeescript console, a CodeMirror based IDE to edit and test your components which live reloads javascript prototype changes and re-renders your components, so that you can experiment directly in the browser.

\n

Live reloading of your code changes is also supported if you use the ruby gem and make changes in your favorite editor.

\n
\n
\n

Experimentation and Debugging

\n

The way the Luca framework was designed encourages us to define our apps mostly using JSON configuration, which then gets interpreted, and structural components and style rules are generated for us. Events get binded, and things just work.

\n

Because large parts of the application\'s code are just configuration strings, it is very easy to provide you with a suite of development tools that allow you to inspect what is going on behind the scenes and make changes directly in the environment if you want to experiment with some ideas.

\n
\n
\n

Not only for Ruby Developers

\n

Luca is just javascript and css, and will work with any server backend.

\n

That being said, Luca was developed against Rails and Sinatra apps and comes with many development helpers which work in these environments. The development environment and sandbox is a Sinatra app, but like everything else in the framework you can only use what you need.

\n
\n
\n
\n');}return __p.join('');}; }).call(this); (function() { Luca.templates || (Luca.templates = {}); Luca.templates["sandbox"] = function(obj){var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('

Hi

\n');}return __p.join('');}; }).call(this); (function() { Luca.templates || (Luca.templates = {}); Luca.templates["sandbox/navigation"] = function(obj){var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('\n');}return __p.join('');}; }).call(this); (function() { _.def("Sandbox.views.TopNavigation")["extends"]("Luca.components.NavBar")["with"]({ brand: "Luca", name: "top_navigation", template: "sandbox/navigation" }); }).call(this); (function() { Sandbox.Router = Luca.Router.extend({ routes: { "": "default", "class_browser": "class_browser", "component_tester": "component_tester" }, "default": function() { return this.app.navigate_to("pages").navigate_to("main"); }, class_browser: function() { return this.app.navigate_to("pages").navigate_to("class_browser"); }, component_tester: function() { return this.app.navigate_to("pages").navigate_to("component_tester"); } }); }).call(this); (function() { Sandbox.Application = Luca.Application.extend({ name: 'sandbox_application', el: '#viewport', fluid: true, topNav: 'top_navigation', useKeyRouter: true, keyEvents: { meta: { forwardslash: "developmentConsole" } }, components: [ { ctype: 'controller', name: 'pages', components: [ { name: "main", bodyTemplate: 'main' }, { name: "class_browser", ctype: "class_browser" }, { name: "component_tester", ctype: "component_tester" } ] } ], initialize: function(options) { this.options = options != null ? options : {}; Luca.Application.prototype.initialize.apply(this, arguments); return this.router = new Sandbox.Router({ app: this }); }, developmentConsole: function() { var container; this.developmentConsole = Luca("coffeescript-console", function() { return new Luca.tools.DevelopmentConsole({ name: "coffeescript-console" }); }); if (!this.consoleContainerAppended) { container = this.make("div", { id: "devtools-console-wrapper", "class": "devtools-console-container modal", style: "width:1000px" }, this.developmentConsole.el); $('body').append(container); this.consoleContainerAppended = true; this.developmentConsole.render(); } return $('#devtools-console-wrapper').modal({ backdrop: false, show: true }); }, afterRender: function() { return this._super("afterRender", this, arguments); } }); $((function() { (window || global).SandboxApp = new Sandbox.Application(); SandboxApp.boot(); return prettyPrint(); })()); }).call(this); (function() { }).call(this);