I am looking in the sources of ruby plugin, where they do their magic passes with hands and rhtml is supported.
Currently i have an error because classes
com.intellij.psi.impl.source.jsp.SimpleTreePatcher are missing.
Their location as well as some documentation on inplementing general template language is very welcome!
I've downloaded build 6913 and it's dev-kit.