Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.32 KB

README.textile

File metadata and controls

58 lines (41 loc) · 1.32 KB

What does it do?

This redmine plugin exposes extra macros in your redmine wikis. These macros are used to dynamically load css file, js file or inject raw HTML into your wiki page.

Exposed Macros

  • css_url()
  • js_url()
  • html()
  • css()
  • js()

Examples

{{html
<ul>
   <li>option 1</li>
   <li>option 2</li>
   <li>option 3</li>
</ul>
}}

You can also use css() macro to embedd raw CSS into the middle of a wiki page.

{{css
.fooClass{
  color:red;
  padding:15px;
}
#barID{
  margin-left:15px;
}
}}

Include external static assets to your wiki page

{{css_url('https://rawgithub.com/twbs/bootstrap/master/dist/css/bootstrap.min.css')}}
{{js_url('https://rawgithub.com/twbs/bootstrap/master/dist/js/bootstrap.min.js')}}

See it in action

Visit the original blog post for a video of the plugin in action.
arlocarreon.com/blog/redmine/redmine-wiki-html-utility/

Installation

Navigate to:
[redmine_install_path]/plugins

Clone this repo:
git clone git://github.com/mexitek/redmine_wiki_html_util.git

Restart Redmine (example below is using bitnami stack):
sudo /etc/init.d/bitnami restart