# Using liveview as root layout

**URL:** <https://forum.elixirforum.com/t/using-liveview-as-root-layout/30241>\
**Category:** Questions\
**Tags:** phoenix-14, liveview\
**Created:** [March 31, 2020, 8:47am UTC](https://forum.elixirforum.com/t/using-liveview-as-root-layout/30241 "2020-03-31T08:47:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paulgoetze](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/paulgoetze/32/18714_2.png) [@paulgoetze](https://forum.elixirforum.com/u/paulgoetze)\
**Post date:** [March 31, 2020, 11:24am UTC](https://forum.elixirforum.com/t/using-liveview-as-root-layout/30241/2 "2020-03-31T11:24:18Z")

</div>

Hey, I’d would probably set up a root.html.eex, app.htlm.eex, and live.html.leex, as it was done in the live\_view example app: [Fix layouts · chrismccord/phoenix\_live\_view\_example@c683680 · GitHub](https://github.com/chrismccord/phoenix_live_view_example/commit/c68368049bc39ac73fe0d66a435499f8a4415f3a) . This works for phoenix\_live\_view v0.10.0.

This allows you to have both routes with and without LiveView (e.g. if you just need a static page at some point or the like.)

---

_[View the full topic](https://forum.elixirforum.com/t/using-liveview-as-root-layout/30241)._
