Looking for template engine like HTML::Mason (or Mason), so what \"compiles\" source components into perl code, but instead of perl-code will \"compile\" components into JavaScr
(That said, I disagree entirely with your premise of "Javascript is full featured language so using it is probably better/faster than some "mini languages" like TT or similar" - IMO there is absolutely no reason to do what you are asking.)