I hereby claim:
- I am pootsbook on github.
- I am pootsbook (https://keybase.io/pootsbook) on keybase.
- I have a public key whose fingerprint is 2E2E 008E CD35 37FE 46D2 67AB E74F 6DFC 04AE D9B7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// We need to import the CSS so that webpack will load it. | |
// The MiniCssExtractPlugin is used to separate it out into | |
// its own CSS file. | |
import "../css/app.scss" | |
// webpack automatically bundles all modules in your | |
// entry points. Those entry points can be configured | |
// in "webpack.config.js". | |
// | |
// Import deps with the dep name or local files with a relative path, for example: |
class HTMLDoc | |
def initialize | |
@node_id = 0 | |
@parent_id = 0 | |
@doc = [] | |
yield self if block_given? | |
end | |
def el(type, attributes = {}) |
class HTMLDocument | |
def initialize | |
@doc = "" | |
yield self if block_given? | |
end | |
def el(type, attrs={}) | |
case type | |
when :text |
class HTMLDocument | |
VOID_ELEMENTS = %i[ | |
area base br col embed hr img input | |
link meta param source track wbr | |
] | |
def initialize | |
@doc = "" | |
yield self if block_given? |
class HTMLDocument | |
ENTITIES = { | |
"'" => ''', | |
'&' => '&', | |
'"' => '"', | |
'<' => '<', | |
'>' => '>', | |
} | |
def initialize(indent = " ", level = 0) |
require "hypertext" | |
require "hypertext/dsl" | |
class Hypertext | |
def append(fragment) | |
@dom << fragment | |
end | |
class DSL | |
def append(fragment) |
require "scrivener" | |
require "hypertext" | |
require "hypertext/dsl" | |
class RegistrationForm < Scrivener | |
attr_accessor :name | |
attr_accessor :email | |
attr_accessor :message | |
def validate |