A Developer's Blog

A Developer's Blog

Shared templates between LiveView and static pages

May 6, 20212 min read

Ever wanted to share some templates between your LiveViews and other static pages? Footers/headers/sidebars and such parts of a website can be shared. Here is something to help you. You can define a view like this: defmodule YourAppWeb.SharedView do ...