JS ROOT and BS


This uses https://github.com/linev/jsroot/ and a md-like processing (within flask flatpages + frozen) setup.

To embed root graphics write in mdown:

![rootjs](file=../data/test/example.root&nobrowser&layout=grid1x1&item=sigmas1_widths;1+rms1_widths;1){: title="Title set from .md file" width=4 footer="This is a footer"}

After mdown


After MD run this shows up as...

<img alt="rootjs" footer="This is a footer" src="file=../data/test/example.root&nobrowser&layout=grid1x1&item=sigmas1_widths;1+rms1_widths;1" title="Title set from .md file" width="4" />

... and this is replaced (by a python script using HTMLParser) to ...

<div class="row">
<div class="col-sm-4"></div>
<div class="col-sm-4">
<div class="panel panel-warning">
<div class="panel-heading">
<h2 class="panel-title">Title set from .md file</h2>
</div>
<div class="panel-body">
<div class="embed-responsive embed-responsive-4by3">
<iframe class="embed-responsive-item" src="../static/jsroot/index.htm?file=../data/test/example.root&nobrowser&layout=grid1x1&item=sigmas1_widths;1+rms1_widths;1"></iframe>
</div>
</div>
<div class="panel-footer">This is a footer</div>
</div>
<div class="col-sm-4"></div>
</div>
</div>

to show as...

Title set from .md file

Obsolete


Here is md code for the figures below:

This does not work with the old parsing - need markdown+html...
![root](file=../data/test/example.root,nobrowser,layout=grid1x1,item=sigmas1_widths;1+rms1_widths;1,title=Title set from .md file,width=4,footer=This is a footer)
![root](file=../data/test/example.root,nobrowser,layout=grid1x1,item=sigmas1_widths;1+rms1_widths;1,title=Title set from .md file,width=6)