From 5c0e58df88e44b1e93e3e4ccc93cc99027189539 Mon Sep 17 00:00:00 2001 From: "Elf M. Sternberg" Date: Wed, 8 Dec 2010 17:38:29 -0800 Subject: [PATCH] Fix and document latex output how-to. --- backbonestore.nw | 8 ++++++- spiral.js | 58 ------------------------------------------------ 2 files changed, 7 insertions(+), 59 deletions(-) delete mode 100644 spiral.js diff --git a/backbonestore.nw b/backbonestore.nw index 29a8252..9dc69cb 100644 --- a/backbonestore.nw +++ b/backbonestore.nw @@ -3,6 +3,12 @@ \usepackage{hyperref} \begin{document} +% Generate code and documentation with: +% +% noweave -filter l2h -delay -x -html backbonestore.nw | htmltoc > backbonestore.html +% notangle -Rstore.js backbonestore.nw > store.js +% notangle -Rindex.html backbonestore.nw > index.html + I've been learning how to use \nwanchorto{http://documentcloud.github.com/backbone/}{Backbone.js}, a nifty little library for organizing your client-side Javascript into a classic Model-View-Controller paradigm while trying (and to some extent, @@ -139,7 +145,7 @@ var IndexView = Backbone.View.extend({ @ This code defines a [[Backbone.View]] object, in which the parent element -is #main, the render function fades out the existing elements in that +is \#main, the render function fades out the existing elements in that position and replaces them with the contents of a rendered jQuery template, and then fades the element back in. diff --git a/spiral.js b/spiral.js deleted file mode 100644 index c638fd0..0000000 --- a/spiral.js +++ /dev/null @@ -1,58 +0,0 @@ -(function() { - - var User = Backbone.Model.extend({ - schema: null - }); - - - var SpiralGeneticsLoginController = { - - init: function(spec) { - sgcl.this = sgcl.User({}).fetch(); - } - - } - - var SpiralGenetics = Backbone.Controller.extend({ - - routes: { - "": "dashboard", - "!pipelines": pipelines, - "!pipeline/:pipeline", pipeline, - "!datasets": datasets, - - }, - - dashboard: function() { - - }, - - pipelines: function() { - - }, - - pipeline: function(pipeline_url) { - - }, - - datasets: function(dataset_url) { - - }, - - jobs: function() { - - }, - - job: function(job_url) { - - } - - }); - - - - - $(document).ready(function() { - app = SpiralGenetics.init(); - } -})(); \ No newline at end of file