mirror of
https://github.com/phfroidmont/scalive.git
synced 2025-12-25 13:36:59 +01:00
Add phx-track-static
This commit is contained in:
parent
6f012b6796
commit
38655142b0
2 changed files with 8 additions and 2 deletions
|
|
@ -7,8 +7,13 @@ object RootLayout:
|
|||
headTag(
|
||||
metaTag(charset := "utf-8"),
|
||||
metaTag(nameAttr := "viewport", contentAttr := "width=device-width, initial-scale=1"),
|
||||
scriptTag(defer := true, typ := "text/javascript", src := "/static/app.js"),
|
||||
linkTag(rel := "stylesheet", href := "/static/app.css"),
|
||||
scriptTag(
|
||||
defer := true,
|
||||
phx.trackStatic := true,
|
||||
typ := "text/javascript",
|
||||
src := "/static/app.js"
|
||||
),
|
||||
linkTag(phx.trackStatic := true, rel := "stylesheet", href := "/static/app.css"),
|
||||
titleTag("Scalive Example")
|
||||
),
|
||||
bodyTag(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue