Project

rubelm

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby framework for building client web apps
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.16
= 0.7.0.rc.2
>= 0
~> 10.0
~> 3.0

Runtime

 Project Readme

Rubelm

Rubelm is A Opal library for building web applications. Gem URL : https://rubygems.org/gems/rubelm

Installation

Add this line to your application's Gemfile:

gem 'opal-sprockets'
gem 'rubelm'

And then execute:

$ bundle

Usage

Please run on your application directory.

$ mkdir app $ touch app/app.rb config.ru

your application directory tree shoud be like this.

.
├── Gemfile
├── Gemfile.lock
├── app
│   └── app.rb
└── config

Please edit config.ru

require 'bundler'
Bundler.require

run Opal::Sprockets::Server.new { |s|
  s.append_path 'app'
    s.debug = true
    s.main = 'app'
}

Please edit app/app.rb

require "rubelm"
require "opal-browser"
include Rubelm::Html
view = div({class: "hello"},[
    div({class:"world"}, "hello, world!")
])
Rubelm::main(view,$document.body)

Please run.

$ bundle $ bundle exec rackup

You can see on http://localhost:9292

image

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/anharu2394/rubelm.