You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mermaid uses client-side rendering to render diagrams written in a simple, plain text style. These are excellent for presentations and documentation, and it would be good to have integrated support for it.
This could be done as a plugin, Statocles::Plugin::Diagram::Mermaid, which exports a template helper diagram. The helper would take the diagram syntax as a block, like:
%= diagram begin
A->>B
% end
Using the helper on a page would add the appropriate script elements to the page. The libraries themselves could be loaded from a CDN, with an option to set the URL to load the libraries from.
The plugin should be named Statocles::Plugin::Diagram::Mermaid so that we can have other diagram plugins in the future (like Ditaa)
The text was updated successfully, but these errors were encountered:
[Added]
- Added "blank" layout templates to the default and bootstrap
themes. These templates have no adornment whatsoever, and are
ideal for things like slide decks and pop-up windows.
- Added 'diagram' plugin to generate diagrams from Mermaid,
a JS-based diagram system (https://mermaidjs.github.io/). Thanks
@kiwiroy! [Github #525]
- Added syntax highlighting to code sections in the Perldoc
application. Thanks @kiwiroy!
http://knsv.github.io/mermaid/index.html#mermaid
Mermaid uses client-side rendering to render diagrams written in a simple, plain text style. These are excellent for presentations and documentation, and it would be good to have integrated support for it.
This could be done as a plugin,
Statocles::Plugin::Diagram::Mermaid
, which exports a template helperdiagram
. The helper would take the diagram syntax as a block, like:Using the helper on a page would add the appropriate script elements to the page. The libraries themselves could be loaded from a CDN, with an option to set the URL to load the libraries from.
The plugin should be named
Statocles::Plugin::Diagram::Mermaid
so that we can have other diagram plugins in the future (like Ditaa)The text was updated successfully, but these errors were encountered: