{% extends "vending/views/templates/base.html" %} {% block content %}

Welcome to vending

What this project is about is the Vending Machine code kata. Just at this point, I've added the whole of a luminusweb default template to it, but I haven't done much with it. In due course this page will be replaced with a graphical representation of a heath-robinson vending machine, with buttons allowing coins to be inserted, and items to be selected.

I intend that the page should be interactive, with the vending machine responding graphically to what the user does on the buttons. The logic will almost certainly be server-side at first, but possibly later I'll move it client-side using ClojureScript.

At this stage in the project this page uses the Selmer templating system; later I intend that it should use Enlive.

{% for button in buttons %} {% endfor %}
Tendered coins {{machine.tendered}}
Stock Coin stacks
Teacakes Caramel wafers Snowballs Merks Bawbees Placks Bodles
{{machine.stock.caramel-wafer}} {{machine.stock.teacake}} {{machine.stock.snowball}} {{machine.coins.merk}} {{machine.coins.bawbee}} {{machine.coins.plack}} {{machine.coins.bodle}}
Last Message
{{machine.message}}
Output Change
{{machine.output}} {% for coin in machine.change %} {{coin}} {% endfor %}
{% endblock %}