Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including zorium with all npm packages installed. Try it out:

var zorium = require("zorium")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

zorium v2.1.7

Zorium, The CoffeeScript Web Framework. Zorium offers a full virtual-dom experience, similar to react, without the need for jsx. For more documentation see http://zorium.org

Zorium

Zorium - The CoffeeScript Web Framework

zorium.org

(╯°□°)╯︵ ┻━┻ v2.0.0

Features

Example

z = require 'zorium'

class Icon
  render: ({children}) ->
    z '.icon', children

class AppComponent
  constructor: ->
    @state = z.state
      name: 'Zorium'

  render: =>
    {name} = @state.getValue()

    z '.zorium',
      z 'p.text',
        z Icon, 'fireworks'
        "The Future -#{name}"

z.render new AppComponent(), document.body

Documentation

zorium.org

Installation

yarn add zorium

Contribute

yarn install
yarn test

Changelog

  • 1.x -> 2
    • [breaking] deprecate z.ev()
    • [breaking] deprecate attributes property for manually specifying attributes
    • [breaking] deprecate z.router
    • [breaking] upgrade to RxJS v5
    • [breaking] remove requestAnimationFrame and Promise polyfill
    • add support for rendering static classes as components
    • migrate backend from virtual-dom to dio.js

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free