convert view to mustache view