I envision the possibility to inject scripts, or parts of html etc. into the response body.
The first vision was to abuse the template directive, but this would most likely lead to horrible html and due to the maximum request_body placeholder to broken pages.
Before starting work on something like this, I would love some more thoughts.
inject [basepath] {
ext "extensions"
before "location to inject"
after "location to inject"
string "string to inject"
file "template or html to inject"
}
inject / {
ext .html .php
before "</html>"
after "<head>"
string "<p>{{IP}}</p>"
file new-navigation.tmpl
}
Does that make sense?