Node's Pretty Magical

    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"

    Keywords

    Install

    npm i space-pencil

    DownloadsWeekly Downloads

    4

    Version

    0.3.0

    License

    MIT

    Last publish

    Collaborators

    • atom-team
    • nathansobo