What I did accomplish this task is, enhance string template engine so it could be use any other requirements. For that case, I was using string template engine to create video tag html.
Before continue, I was already referring to the existing stringTemplateEngine
used by only a extension called modal
I was doing a refactoring to re-using engine other extensions too.
stringTemplateEngine
provides me seperate some logic should be stay inside a specific code part. I might go for knockout component too, but that challenge attracts me more and see the advantages of using stringTemplateEngine provides me write more component-ish binding extension.