space-pencil

0.3.0 • Public • Published

Space Pencil

The only feature this library currently has is an element builder with the same DSL as SpacePen, but it returns a raw DOM element rather than a jQuery fragment.

It's exported as $$:

{$$} = require 'space-pencil'
 
element = $$ ->
  @div class: "greeting"->
    @h1 ->
      @text "Hello"
      @span "World"

Readme

Keywords

Package Sidebar

Install

npm i space-pencil

Weekly Downloads

7

Version

0.3.0

License

MIT

Last publish

Collaborators

  • atom-team
  • nathansobo