basic rendering with directive