compile tutorial in directives