Wordpress style shortcodes for your Ruby CMS.
A simple ruby gem that will parse your cms content for wordpress style shortcodes.
Add this line to your application's Gemfile:
gem 'shortcodes'
And then execute:
$ bundle
Or install it yourself as:
$ gem install shortcodes
Shortcodes.shortcode(content)
Example:
[youtube url="https://www.youtube.com/watch?v=Gzj723LkRJY#t=3m21s"]
Attributes:
url
- requiredwidth
,height
- optional. defaults to 560x315
Copying and pasting the Wufoo Wordpress shortcode should work.
Example:
[wufoo username="awesome_user" formhash="a04909c" autoresize="true" height="961" header="show" ssl="true"]
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request