ralphbean/ansi2html — Issue #10: Feat: enable dynamic processing of content
Author: fdev31
Created: 2012-02-06 18:43:10+00:00
State: open

I would love to be able to "script" using ansi2html, using css or yaml-like description to be able to execute some templating operations (adding/removing/editing content).
An option could be provided to pass a .js file as argument, so one could but a piece of javascript that will process the
informationful generated html (via templating) and augment the output. Here is a draft language to explain some kind of things I would like to do:

```
'1' { // matches an exact line number
insert_content: "

"
}
'span.ansi37,span.ansi32' { // matches a sequence of spans
// template-like execution, with some smart global variables
append_content: "anchor number {{span.parent.text.split('\n',2)[0]}}"
}
```