ryhan / fixie

Automatically add filler content to HTML documents based on semantic tags.

Home Page:http://ryhan.me/fixie/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

function call alternative to class api

stephenhandley opened this issue · comments

maybe an alternative / additional api would be to allow for something like

fixie.init([".array", "#of .selectors", ".that", ".should", "#be .populated .with .lorem"])

or just a string like

fixie.init(".string, #of .comma .separated .selectors, .that, .should, #be .populated .with .lorem")

I think that would address the class proliferation issue and still be explicit about which dom nodes should be populated. easier to maintain / comment out.

Nice idea!

commented

Yeah, a more flexible api would be awesome.

I'd specifically like to be able to enable fixie on everything in my <body> tag, or just on specific elements.

Fully implemented.

awesome! thanks!