Created
August 16, 2012 06:30
-
-
Save psykidellic/3367351 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(function() { | |
| var app = new App.BeamRouter(); | |
| App.Models.mainPage = new App.Models.MainPage({ title: "Test title" }); | |
| App.Views.mainLayout = new App.Views.MainLayout({ model: App.Models.mainPage }); | |
| $("#main").empty().append(App.Views.mainLayout.el); | |
| App.Views.mainLayout.render(); | |
| Backbone.history.start({pushState: true}); | |
| }); | |
| >>>> | |
| App.Models.MainPage = Backbone.Model.extend({}); | |
| App.Views.MainLayout = Backbone.Layout.extend({ | |
| manage: true, | |
| template: "#container-fluid", | |
| }); | |
| %script#container-fluid{ :type => 'text/template' } | |
| .container-fluid{ :style => "border: solid 1px;" } | |
| .sidebar | |
| .testclass | |
| %p | |
| <%= title %> | |
| .content | |
| %p Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | |
| #footer | |
| >>> | |
| Uncaught ReferenceError: title is not defined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment