It is, with AngularJS :-) (see: http://docs.angularjs.org/guide/directive)