This is a system that contains all data related to the European Lisp Symposium, and is able to compile it into a static website for publishing.
This repository makes use of Git LFS for storage of several large files (images, pdfs, etc.) In order to properly clone all the data and contribute to the repository, please first make sure Git LFS is installed on your machine. Typically it should be available as a git-lfs package. Following that, run these commands to clone the repository:
git lfs installgit clone git@github.com:european-lisp-symposium/els-web
If all went fine, the file at els-web/output/static/favicon.png should be a binary image. If something went wrong it will be a plain text file. In that case, Git LFS was not properly set up. Please make sure you have installed it correctly and try again.
When pulling, please make sure to pull with rebase to avoid merge commits and branching history. You can do so either explicitly with git pull --rebase or configure rebase as the default with git config --bool pull.rebase true.
An edition is created by defining a new package of the editions' name --usually its year-- and following it up with various data definitions. The basic outline is as follows:
(in-package #:els-web-editions)
(define-edition "2025")
(in-package "2025")
(define-text :announcement
(:div :class "announcement" "A new edition is coming along!"))
(define-date "Conference start" @2025-05-23)
(define-date "Conference end" @2025-05-24)
;; etc.When a definition is recompiled, its data is updated if possible. Each data entry is identified by one or more key fields. If those are changed, the data will instead be added again. To avoid this, you can recompile the entire file, which will first clear out all the data through the define-edition macro, and then add it all anew.
If you add a new edition, you should place it into the editions directory, and then add the file to the ASDF system definition, such that the edition is automatically recognised once the system is loaded.
define-personDefine a new person that is relevant to this edition. All programme members and speakers should be defined in this way. The name should either be a name string directly, or ideally a list of the relevant name parts. See the list of fields below.define-locationDefine a new location. This can be used to define the location of the conference itself, as well as nearby hotels and such. See the list of fields below.define-textDefine a new text to be displayed on the page. The body of the definition should be a set of cl-who template structures.define-programme-entryDefine an entry in the programme. You will probably want to usedefine-programme-daydirectly, however, as it makes the date definition much more simple.define-programme-dayDefine a fully day of the programme. The body should be pairs of time dates and the entry that is started at that time. See the list of fields below.define-dateDefine a deadline or date that people should know about.define-sponsorDefine a sponsor for the conference. The body should include website and logo fields.define-proceedingsPublish a link to the public proceedings document.define-registrationDefine the registration prices and other metadata.
Many of these definitions accept arbitrary data fields in the form of a plist. The following fields are specially treated and respected by the templates.
:full-nameThe full name string. Usually calculated automatically from the name.:nameShould be a plist where the following keys are recognised::honorific-prefixThe honorific prefix, if any.:given-nameThe person's first, or given name.:additional-nameThe person's middle, or additional name.:family-nameThe person's last, or family name.:honorific-suffixThe honorific suffix, if any.
:photoA link to a photo of the person or location.:nicknameAn online nickname.:emailThe e-mail address of the person or location.:websiteA link to the website.:telephoneThe telephone number to contact the person or location.:organizationThe organisation the person is a part of.:categoryWhich category the location belongs to.:roleWhich roles the location or person fulfils. The following roles are recognised::conferenceThis is the conference's primary location.:hotelThis is a suitable hotel near the conference.:programme-chairThis person is the programme chair.:local-chairThis person is the local conference chair.:committeeThis person is on the committee.:virtualizationThis person is on the virtualization team.:local-organizerThis person is the local organiser.:speakerThis person is a speaker and has an official talk.
:addressShould be a plist where the following keys are recognised::po-boxThe post office box number.:streetThe basic street name and number.:extendedThe extended street address.:cityThe locality or city.:regionThe region the city is in.:post-codeThe local post-code.:countryThe country name.
:titleThe primary title of the talk or event.:speakersThe list of speakers that hold the talk. Each speaker should be referenced by their full name string, which is usually the given name and family name together, separated by a string.:roleThe roles of the programme entry. The following roles are recognised::talkThis entry is a talk.:keynoteThis talk is also a keynote.:breakThis represents a coffee break or some other kind of downtime.:organizationThis event is about information of the conference.:lightningThis is a lightning talk session.:dinnerThis is for the conference dinner time.
:descriptionThe long description used for keynote talks. This is displayed in the highlights section of the page.:noteAn additional note to display in the programme about this event. Can be used in cases where an event is cancelled or something to that effect.:websiteIf present turns the title into a link. Intended to be used to link to a video or slides of the entry.
:websiteA link to the sponsor's website.:logoA link to the logo image of the sponsor. The logo should be no bigger than 256px², should be hosted locally, and ideally should be a vector graphics image.
The registration definition is composed of a number of items. Each item has the following structure: a type, a name, and attributes. The type should be either :kind for primary registration types, and :option for optional features attendees can request. The name should uniquely identify the item in the list. The following attributes can also be specified:
:priceThe price of the item in €. If you need cents, use a float. Defaults to0.:statusShould be:activeif one can buy the item, and:inactiveif not. Useful for managing early-bird items. Defaults to the status of the entire registration block.:descriptionA textual description of the item, explaining it in more detail.
Once registrations are closed, you should set the entire registration block to :inactive.
The data can be easily retrieved through the query function that does some light matching. The filter argument can be of the following structure:
FILTER ::= everything | CLAUSE
CLAUSE ::= (= DATA DATA)
| (in DATA DATA)
| (and CLAUSE*)
| (or CLAUSE*)
| (not CLAUSE)
DATA ::= keyword | data-field | data-value
everything --- The symbol T to represent all data
keyword --- A keyword symbol that is directly used as a value
data-field --- A symbol representing the value of a field in a data entry
data-value --- Any kind of object that is directly used as a value
Comparison between values is done through g=, which is a form of "generalised equality." Specifically, the following holds:
- Two
timestamps areg=if they aretimestamp=. - Two
symbols areg=if they arestring-equal. - Two
strings areg=if they arestring-equal. - Any other kind of object is compared by
equalp.
These weakened comparisons are done to make it more convenient to extract the data within templates.
Some parts of the website require keys and tokens that should not be made public in a repository like this. Thus, this includes a simple "secrets" mechanism. The system expects a file called secrets.lisp within its root directory. This file should contain a single plist of keywords to strings. The following keys are required:
:google-api-keyThe public key provided to you by Google.:stripeA path to the Stripe PHP library root folder.:stripe-public-keyThe public key provided by Stripe.:stripe-private-keyThe private key provided by Stripe.:mailerA path to the PHPMailer root folder.:mailer-hostThe hostname of the SMTP server.:mailer-portThe port to connect through (usually 465 for SSL, 587 for TLS).:mailer-sslOne of"false","true","self-signed". Note that the self-signed option disables certificate checking.:mailer-tlsEither"true"or"false".:mailer-userThe username to connect to the SMTP server with.:mailer-passThe password for the user account.:mailer-fromBoth the recipient of email receipts and theFrom:address.
Note that for Stripe you should use the provided testing keys during development, and use the production keys for the deployed website. Using either key set on the other environment is a very bad idea.
The templates are written using the Clip system. For the most part the data is introduced using the aforementioned query function, and its abbreviations query1 and queryf. Common structures like locations, people, and programme entries are separated out of the primary index.ctml template and spliced back in using the <c:splice> tag.
What's going on in the templates should not be too difficult to figure out. Otherwise, have a look at Clip's and perhaps also lQuery's documentation.
You can compile the edition data using compile-edition. When you add or remove an edition, you should also compile all the other ones as well, in order to ensure the cross-links are still valid. You can do so with compile-all-editions.
The resulting static files will be placed in the output directory, automatically overwriting previous files. In order to publish the site, you simply need to copy the entire output directory, or make it visible through a webserver somehow.
In order to deploy ELS-web on a server, you will need a PHP5 capable server. I'm well aware that using PHP sounds like heresy for a Lisp project, but many servers don't offer direct root access to run a Lisp instance.
Either way, in order to deploy it, you will need the full ELS-web repository, including a filled out secrets.lisp file. The server-side registration script will access this file to retrieve some options. While the root of the project does need to be accessible to PHP, it should naturally not be accessible to the web. The document root that your web server should serve is the output directory.