Project

koara-xml

0.0
No commit activity in last 3 years
No release in over 3 years
Koara to HTML parser written in Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 10.4.2, ~> 10.4
 Project Readme

Koara

Build Status Coverage Status Gem License

Koara-rb-html

Koara 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.

Getting started

gem install koara-html

Usage

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.