3:I[5613,[],""] 4:I[1778,[],""] 5:I[2266,["250","static/chunks/250-e45a0a9f1f87fcb8.js","123","static/chunks/123-437e492929b8e5cd.js","787","static/chunks/787-34619535dc4c8b8e.js","185","static/chunks/app/layout-8e510c4a6ad04f5a.js"],"Providers"] 6:I[6080,["250","static/chunks/250-e45a0a9f1f87fcb8.js","123","static/chunks/123-437e492929b8e5cd.js","787","static/chunks/787-34619535dc4c8b8e.js","185","static/chunks/app/layout-8e510c4a6ad04f5a.js"],"Layout"] 7:I[5250,["250","static/chunks/250-e45a0a9f1f87fcb8.js","123","static/chunks/123-437e492929b8e5cd.js","869","static/chunks/app/docs/guide/views/page-6cd555f005a271f2.js"],""] 0:["eLuBIjOTKDjvNSEcdbrLy",[[["",{"children":["docs",{"children":["guide",{"children":["views",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["guide",{"children":["views",{"children":["__PAGE__",{},["$L1","$L2",null]]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","guide","children","views","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","guide","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]},[null,["$","html",null,{"lang":"en","className":"h-full antialiased __variable_aaf875 __variable_b436a8","suppressHydrationWarning":true,"children":["$","body",null,{"className":"flex min-h-full bg-white dark:bg-slate-900","children":["$","$L5",null,{"children":["$","$L6",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"min-w-0 max-w-2xl flex-auto px-4 py-16 lg:max-w-none lg:pl-8 lg:pr-0 xl:px-16","children":["$","div",null,{"className":"flex h-full flex-col items-center justify-center text-center","children":[["$","p",null,{"className":"font-display text-sm font-medium text-slate-900 dark:text-white","children":"404"}],["$","h1",null,{"className":"mt-3 font-display text-3xl tracking-tight text-slate-900 dark:text-white","children":"Page not found"}],["$","p",null,{"className":"mt-2 text-sm text-slate-500 dark:text-slate-400","children":"Sorry, we couldn’t find the page you’re looking for."}],["$","$L7",null,{"href":"/","className":"mt-8 text-sm font-medium text-slate-900 dark:text-white","children":"Go back home"}]]}]}],"notFoundStyles":[],"styles":null}]}]}]}]}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ecb0509aa3fc3a51.css","precedence":"next","crossOrigin":""}]],"$L8"]]]] 9:I[4841,["250","static/chunks/250-e45a0a9f1f87fcb8.js","123","static/chunks/123-437e492929b8e5cd.js","869","static/chunks/app/docs/guide/views/page-6cd555f005a271f2.js"],"DocsHeader"] a:I[659,["250","static/chunks/250-e45a0a9f1f87fcb8.js","123","static/chunks/123-437e492929b8e5cd.js","869","static/chunks/app/docs/guide/views/page-6cd555f005a271f2.js"],"Fence"] b:I[5357,["250","static/chunks/250-e45a0a9f1f87fcb8.js","123","static/chunks/123-437e492929b8e5cd.js","869","static/chunks/app/docs/guide/views/page-6cd555f005a271f2.js"],"PrevNextLinks"] 2:["$","div",null,{"className":"min-w-0 max-w-2xl flex-auto px-4 py-16 lg:max-w-none lg:pl-8 lg:pr-0 xl:px-16","children":[["$","article",null,{"children":[["$","$L9",null,{"title":"Views"}],["$","div",null,{"className":"prose prose-slate max-w-none dark:prose-invert dark:text-slate-400 prose-headings:scroll-mt-28 prose-headings:font-display prose-headings:font-normal lg:prose-headings:scroll-mt-[8.5rem] prose-lead:text-slate-500 dark:prose-lead:text-slate-400 prose-a:font-semibold dark:prose-a:text-sky-400 prose-a:no-underline prose-a:shadow-[inset_0_-2px_0_0_var(--tw-prose-background,#fff),inset_0_calc(-1*(var(--tw-prose-underline-size,4px)+2px))_0_0_var(--tw-prose-underline,theme(colors.sky.300))] hover:prose-a:[--tw-prose-underline-size:6px] dark:[--tw-prose-background:theme(colors.slate.900)] dark:prose-a:shadow-[inset_0_calc(-1*var(--tw-prose-underline-size,2px))_0_0_var(--tw-prose-underline,theme(colors.sky.800))] dark:hover:prose-a:[--tw-prose-underline-size:6px] prose-pre:rounded-xl prose-pre:bg-slate-900 prose-pre:shadow-lg dark:prose-pre:bg-slate-800/60 dark:prose-pre:shadow-none dark:prose-pre:ring-1 dark:prose-pre:ring-slate-300/10 dark:prose-hr:border-slate-800","children":[["$","h2",null,{"id":"displaying-view","children":"Displaying view"}],["$","$La",null,{"language":"php","children":"namespace frontend;\n\nuse Controller, Route;\n\n#[Controller]\nclass HomepageController\n{\n #[Route('/')]\n function index()\n {\n return view('@frontend/homepage');\n }\n}\n"}],["$","h2",null,{"id":"passing-data","children":"Passing data"}],["$","h4",null,{"id":"array","children":"array"}],["$","$La",null,{"language":"php","children":"namespace frontend;\n\nuse Controller, Route;\n\n#[Controller]\nclass HomepageController\n{\n #[Route('/')]\n function index()\n {\n return view('@frontend/homepage', ['name' => 'John']);\n }\n}\n"}],["$","h4",null,{"id":"object","children":"object"}],["$","$La",null,{"language":"php","children":"namespace frontend;\n\nuse Controller, Route;\n\n#[Controller]\nclass HomepageController\n{\n #[Route('/')]\n function index()\n {\n $person = new Person();\n $person->name = 'John';\n return view('templates/homepage', $person);\n }\n}\n"}],["$","h4",null,{"id":"assigning","children":"assigning"}],["$","$La",null,{"language":"php","children":"namespace frontend;\n\nuse Controller, Route;\n\n#[Controller]\nclass HomepageController\n{\n #[Route('/')]\n function index()\n {\n $view = view('templates/homepage');\n $view->name = 'John';\n return $view;\n }\n}\n"}],["$","h2",null,{"id":"syntax","children":"Syntax"}],["$","h4",null,{"id":"displaying-literal","children":"displaying literal"}],["$","$La",null,{"language":"html","children":"
\n
{{ _ name }}
\n
\n"}],["$","h4",null,{"id":"displaying-variable","children":"displaying variable"}],["$","$La",null,{"language":"html","children":"
\n
{{ $name }}
\n
\n"}],["$","h4",null,{"id":"loop","children":"loop"}],["$","$La",null,{"language":"html","children":"
\n @foreach($articles as $article)\n
\n

{{ $article->title }}

\n
\n @end\n
\n"}],["$","h4",null,{"id":"conditional","children":"conditional"}],["$","$La",null,{"language":"html","children":"
\n @foreach($articles as $article)\n
\n

{{ $article->title }}

\n @if($article->is_paid)\n
{{ _ Buy }}
\n @end\n
\n @end\n
\n"}],["$","h2",null,{"id":"build-in-formatters","children":"Build-in formatters"}],["$","p",null,{"children":"By default format of date/datetime is taken from I18n object."}],["$","h4",null,{"id":"date","children":"date"}],["$","$La",null,{"language":"html","children":"
{{ $article->published_at }}
\n"}],["$","$La",null,{"language":"html","children":"
{{ $article->published_at | date d MMMM Y }}
\n"}],["$","h4",null,{"id":"date-time","children":"date time"}],["$","$La",null,{"language":"html","children":"
{{ $article->published_at | datetime }}
\n"}],["$","h4",null,{"id":"money","children":"money"}],["$","$La",null,{"language":"html","children":"
{{ $article->price | money }}
\n"}],["$","$La",null,{"language":"html","children":"
{{ $article->price | money EUR }}
\n"}],["$","h4",null,{"id":"custom-formatter","children":"custom formatter"}],["$","p",null,{"children":"It's simple function with format prefix."}],["$","$La",null,{"language":"php","children":"function format_caps($value): string \n{\n return strtoupper($value);\n}\n"}],["$","$La",null,{"language":"html","children":"
{{ $name | caps }}
\n"}],["$","h2",null,{"id":"helpers","children":"Helpers"}],["$","p",null,{"children":["Simplifies code and reduce repetitions.",["$","br",null,{}],["$","a",null,{"href":"/docs/html","children":"Read more about html api"}]]}],["$","$La",null,{"language":"html","children":"
\n {{ html::label('name', 'Name') }}\n {{ html::text('name', $name) }}\n
\n"}],["$","h2",null,{"id":"addons","children":"Addons"}],["$","p",null,{"children":"Definition file with formatters and helpers"}],["$","$La",null,{"language":"php","children":"$$app->addConfiguration(function(AppConfiguration $configuration, Di $di)\n{\n $configuration->viewAddons = \"../server/themes/$settings->theme/addons.php\";\n});\n"}]]}]]}],["$","$Lb",null,{}]]}] 8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Views - Docs"}],["$","meta","3",{"name":"description","content":"Stormmore php framework views."}],["$","link","4",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","meta","5",{"name":"next-size-adjust"}]] 1:null