Skip to content

Latest commit

 

History

History

no-js

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

metal-examples-no-js

A simple modal component built with soy templates and without any custom js code.

This example shows that having just a soy file is enough if you just need your component to be rendered and update itself when state changes. To see how to add more behavior to a component through a js file, check metal-examples-simple.

The code has lots of comments explaining how everything works.

This example was created using generator-metal for the boilerplate. Auto-generated gulp tasks are used for building/testing and other processes, since generator-metal uses gulp-metal automatically.

Setup

  1. Install NodeJS >= v0.12.0, if you don't have it yet.

  2. Install global dependencies:

[sudo] npm install -g gulp
  1. Install local dependencies:
npm install
  1. Build the code:
gulp build
  1. Open the demo at demos/index.html on your browser.