Skip to content

jrobertson/martile-plugin-rbbrs24

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Using the martile-plugin-rbbrs24 gem with the Martile gem

Example:

require 'martile'
require 'martile-plugin-rbbrs24'

s = "
<p>Hello World!</p>
<rbbr>45 + 10</rbbr>
<p>fizzer
foo bar</p>
<rbbr>
puts 'hello world'
e ='123'
</rbbr>
"

m = Martile.new(s, plugins: {Rbbrs24: {action: 'runx'}}, debug: true)
s2 = m.to_s
puts s2

Output:

<p>Hello World!</p>

<div class='code'>
  <form action="run" method="get" target="output">
    <textarea autofocus="true" name="input1">45 + 10</textarea>
    <input type="submit" value="run"/>
  </form>
  <iframe name="output" id="output"/>  
</div>

<p>fizzer
foo bar</p>

<div class='code'>
  <form action="run" method="get" target="output">
    <textarea autofocus="true" name="input1">
puts 'hello world'
e ='123'
</textarea>
    <input type="submit" value="run"/>
  </form>
  <iframe name="output" id="output"/>  
</div>

martile plugin rbbrs24

About

A Martile plugin to generate an HTML form from the Rbbrs24 gem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages