@@ -19,6 +19,7 @@ import Reflex.Dom.Core
19import Common.Api
19import Common.Api
20import Common.Route
20import Common.Route
22+import GHCJS.DOM.Debug
23-- This runs in a monad that can be run on the client or the server.
24-- This runs in a monad that can be run on the client or the server.
24-- To run code in a pure client or pure server context, use one of the
25-- To run code in a pure client or pure server context, use one of the
@@ -29,9 +30,10 @@ frontend = Frontend
29 el "title" $ text "Obelisk Minimal Example"
30 el "title" $ text "Obelisk Minimal Example"
30 elAttr "link" ("href" =: static @"main.css" <> "type" =: "text/css" <> "rel" =: "stylesheet") blank
31 elAttr "link" ("href" =: static @"main.css" <> "type" =: "text/css" <> "rel" =: "stylesheet") blank
31 , _frontend_body = do
32 , _frontend_body = do
33+ prerender_ blank $ void addDebugMenu
32 el "h1" $ text "Welcome to Obelisk!"
34 el "h1" $ text "Welcome to Obelisk!"
33 el "p" $ text $ T.pack commonStuff
35 el "p" $ text $ T.pack commonStuff
35 -- `prerender` and `prerender_` let you choose a widget to run on the server
37 -- `prerender` and `prerender_` let you choose a widget to run on the server
36 -- during prerendering and a different widget to run on the client with
38 -- during prerendering and a different widget to run on the client with
37 -- JavaScript. The following will generate a `blank` widget on the server and
39 -- JavaScript. The following will generate a `blank` widget on the server and