templates
directory. To create a template, simply create a .html
file inside this directory which we will reference to later.asset
helper:request.user()
.dd()
helperView
class. We can once again do this inside the app Service Provider​a_company_owner
in our templates just like the first code snippet above!Notice that we only supplied the function and we did not instantiate anything. The function or object we supply needs to have 1 parameter which is the object or string we are testing.
FileSystem
loader. This should be used when the directory path is NOT a module but rather just a file system path:Note that if you are using an@
symbol that should not be rendered with Masonite then this will throw an error. An example being when you are using@media
tags in CSS. In this case you will need to wrap this statement inside `` and `
{{ }}
characters:extends
above. The "base.html" template is the parent template and contains blocks, which are defined in the child template "blocks.html".