Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

laquereric/opal-todos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opal-todos

A very simple port of TodoMVC (specifically based on backbone version).

Running

Get dependencies:

$ bundle install

Run the sprockets based server for auto-compiling:

$ bundle exec rackup

Open http://localhost:9292 in the browser.

Code Overview

Opal comes with sprockets support built in, so using rack we can have an easy to boot build system to handle all opal dependencies. If you look in index.html.erb, you will see a call to javascript_include_tag which acts just like the rails tag helper. This will include our app.rb file, and all of its dependencies. Each file will be included in a seperate <script>..</script> tag to make navigating the code in a web browser easier.

About

todomvc based opal example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 85.7%
  • HTML 14.3%