-
Notifications
You must be signed in to change notification settings - Fork 16
Generator
The WysiHat Engine comes with a generator to get you up and running. After you installed the gem (installation), you can run it like this:
script/generate wysihat
This will copy the javascripts, stylesheets and images to your project. After that, it will install the responds_to_parent plugin.
The generator will add a WysiHat stylesheet and a bunch of icons for the buttons to make everything look pretty. If you don’t want that, just run the generator like this:
script/generate wysihat --no-stylesheet
We use a concatenated & minfied javascript file — wysihat_engine_pack.js — to keep it down on the filesize and HTTP requests. If you want the javascript source to be copied to your application too, run it like this:
script/generate wysihat --include-js-src
There’s an option to use sass stylesheets instead of the default css ones. Just do this:
script/generate wysihat --sass
We’ll be adding more optional parameters, so stay tuned! :)