I hereby claim:
- I am sirreal on github.
- I am jonsurrell (https://keybase.io/jonsurrell) on keybase.
- I have a public key whose fingerprint is D069 7BD1 B5F9 1620 86CC 28CA 818E F8F9 5177 8F28
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Make it easy to include SVG strings inline via node-sass.
Escapes SVG (via encodeURIComponent
+ node-sass custom function).
Wraps <svg/>
with appropriate url(data...)
which I can never remember.
Call:
node-sass --source-map=true --functions=./node-sass-functions.js in.scss out.css
module Main where | |
import Prelude | |
import Data.List | |
import Data.Either (Either(..)) | |
import Data.Maybe (Maybe(..)) | |
import Data.Newtype (class Newtype, unwrap) | |
import Data.Tuple (Tuple(..), fst, snd) | |
import Unsafe.Coerce (unsafeCoerce) |
{ | |
"$schema": "https://schemas.wp.org/trunk/block.json", | |
"apiVersion": 3, | |
"title": "Jon's cool counter", | |
"name": "jon/the-block", | |
"editorScript": "file:./index.js", | |
"viewModule": "file:./view.js", | |
"render": "file:./render.php", | |
"category": "text" | |
} |
{ | |
"$schema": "https://schemas.wp.org/trunk/block.json", | |
"apiVersion": 3, | |
"title": "Jon's cool counter", | |
"name": "jon/the-block", | |
"editorScript": "file:./index.js", | |
"viewScriptModule": "file:./view.js", | |
"render": "file:./render.php", | |
"category": "text" | |
} |
<body> | |
<div | |
data-wp-interactive='{"namespace":"jon/the-block"}' | |
data-wp-context='{"val":0}' | |
> | |
<input | |
readonly | |
type="number" | |
class="jon-val" | |
data-wp-bind--value="context.val" |
FROM php:7.0-alpine | |
COPY . . | |
ENTRYPOINT ["php", "a.php"] |
{ | |
"$schema": "https://playground.wordpress.net/blueprint-schema.json", | |
"landingPage": "/", | |
"phpExtensionBundles": [ | |
"kitchen-sink" | |
], | |
"steps": [ | |
{ | |
"step": "mkdir", | |
"path": "/wordpress-new" |