Use mixin for html rendering