Giter Site home page Giter Site logo

backbone_template's Introduction

A very simple Backbone.js! Project with Require.js!#

Synopsis

This will launch a series of pages that are controlled by /json/nav.json with a navigation of bootstrap style

The structure of the file will control the look of the Navigation, and the name of each node will determine which template to use. The template that will displayed on the page will determined by the name of each link. For eg. if the name of the link is "Home", the template will by located in js/templates/dynamicTemplates/homeTemplate.html

Currently only two levels of nav dropdowns are supported.

Code Example

{
   "brand": "Diego Test",
   "navItems": [
      {
         "title": "Navbar Docs",
         "name": "navbar-docs"
      },
      {
         "title": "Dropdown Docs",
         "name": "dropdown-doc"
      },
      {
         "title": "Alert",
         "navItems": [
            {
               "title": "Alert Examples",
               "name": "alert-example"
            },
            {
               "title": "Alert Events",
               "name": "alert-event"
            }
         ]
      }
   ],
   "navItemsRight": [
      {
         "title": "Collapse Docs",
         "name": "collapse-doc"
      }
   ]
}

Motivation

Just want to try some of the new JavaScript things

Installation

Make sure npm and bower are installed.
To use: run

npm start

and this will start a server on http://localhost:8000/apps/index.html

backbone_template's People

Contributors

diegofu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.