I've found nice feature in angularjs. Directives can be set to work on comments.
{
...
restrict: 'M'
...
}
This does the trick as it is spoken in the documentation. Usage of this directive is as follows:
<!-- directive: my-directive-name -->
And it works just fine as long as I don't need to pass arguments to this directive. Is it possible to set arguments on directive restricted to comment? What's the syntax?