KoryNunn / crelns

a createElementNS wrapper around crel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crelns

crel for creating namespaced elements, like SVG.

usage:

Same as crel, but with the namespace as the first argument:

crelns('http://www.w3.org/2000/svg', 'g', {'class':'thing'});

You can easily make an SVG specific version like so:

var crsvg = require('crelns').bind(null, 'http://www.w3.org/2000/svg');

About

a createElementNS wrapper around crel


Languages

Language:JavaScript 95.0%Language:HTML 5.0%