Sha256: 550b56cdcf95e03ee480282b8f56576acc954a616dec609f8abd992779071ec8
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
[](http://www.koara.io) [](https://travis-ci.org/koara/koara-rb-html) [](https://coveralls.io/github/koara/koara-rb-html?branch=master) [](https://rubygems.org/gems/koara-html) [](https://github.com/koara/koara-rb-html/blob/master/LICENSE) # Koara-rb-html [Koara](http://www.koara.io) is a modular lightweight markup language. This project can render the koara AST to Html in Ruby. The AST is created by the [core koara parser](https://github.com/koara/koara-rb). ## Getting started - Gem ```bash gem install koara-html ``` ## Usage ```ruby require 'koara' require 'koara/html' parser = Koara::Parser.new result = parser.parse('Hello World!') renderer = Koara::Html::Html5Renderer.new result.accept(renderer) puts renderer.output ``` ## Configuration You can configure the Renderer: - **renderer.partial** Default: `true` When false, the output will be wrapped with a `<html>` and `<body>` tag to make a complete Html document.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
koara-html-0.13.0 | README.md |
koara-html-0.12.0 | README.md |