At the last Declarative Amsterdam...
The call for papers for Declarative Amsterdam 2025 is open!
Deadline: 31 July
Conference: Thu/Fri 6-7 November
At the last Declarative Amsterdam...
I gave a tutorial on developing a 'generic' XForms application.
I had noticed that many of the applications I wrote had a similar structure, so I designed a generic structure that would work for them all:
data.xml
: where the app's data is stored
meta.xml
: data about the data
app.css
: the stylesheets
xform.xhtml
: the application, with places marked that could be edited.
I then started converting my apps one by one into the generic form; in the process often becoming much better.
Moving away from a text-based app for notes, I had started to develop a recipes app
This is the original
This is the revised version based on the generic app
Editing the number of people it serves, changes te amounts for the ingredients
<recipes name="Recipes"> <item class="savoury"> <name>Aubergine Casserole</name> <serves>4</serves> <ingredient> <what>Aubergine or marrow</what> <amount>1</amount> <unit/> </ingredient> <ingredient> <what>melted butter</what> <amount>2</amount> <unit>tbs</unit> </ingredient> ... <step>Peel and slice aubo</step> <step>Boil 10 mins</step> ... </item>