You Must Construct Additional Pylons!
A naive and simple framework for myself.
mix deps.get
cp .env.default .env
# update .env with your apps details
bash local.sh
# open localhost:4000/health
Testing requires docker
and mysql
clients in your terminal.
bash test.sh
bash cli.sh clean_old_sessions
There is special syntax to render views similar to Laravel's blade templates. Otherwise, EEx template syntax should work.
Data in templates use the following syntax.
{{ @name || "" }}
Include a template in the current template.
<%= @include.("includes.footer") %>
Extend a layout template with the current template.
<%= @extends.("layouts.marketing") %>
Render a named "section".
<%= @yield.("content") %>
Section is used to define content of yield statements.
<%= @section.("content") %>
<div>Hello world!</div>
<%= @endsection.() %>
<%= @foreach.("item <- @items") %>
{{ item["name"] }}
<%= @endforeach.() %>