I am using Phoenix and want to create a function inside a view which renders some HTML tags and can be called from a template. Let\'s say I have something like: