<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<link href="https://php.code-maven.com/atom" rel="self" />
<title>PHP Maven</title>
<id>https://php.code-maven.com</id>
<updated>2026-11-26T08:30:01</updated>

  <entry>
    <title>Building static websites with Sculpin</title>
    <summary type="html"><![CDATA[]]></summary>
    <updated>2026-11-26T08:30:01Z</updated>
    <pubDate>2026-11-26T08:30:01Z</pubDate>
    <link rel="alternate" type="text/html" href="https://php.code-maven.com/building-static-websites-with-sculpin" />
    <id>https://php.code-maven.com/building-static-websites-with-sculpin</id>
    <content type="html"><![CDATA[<p>Static websites are quick to build, inexpensive to host, and easy to maintain.</p>
<p>The pages are generated in advance and served as static files.</p>
<p><a href="http://sculpin.io/">Sculpin</a> is a PHP static site generator that turns Markdown and <a href="https://twig.symfony.com/">Twig</a> templates into static HTML.</p>
<p>This talk will show how to build a static website with Sculpin, from creating content and templates to generating and deploying the finished site.</p>
<p>The examples focus on Sculpin, but the principles apply to static site generators more broadly.</p>
<h2 class="title is-4">Bio</h2>
<p><a href="https://www.oliverdavies.uk/">Oliver Davies</a> is a Software Developer and Drupal expert with 19 years experience. He specialises in code quality, automated testing and test-driven development.</p>
<h2 class="title is-4">Notes and links</h2>
<ul>
<li>
<p><a href="https://code.oliverdavies.uk/sculpin-demo/commit/?h=20261125-php-maven">Source code</a> created during the presentation.</p>
</li>
<li>
<p><a href="https://noai.duckduckgo.com/">No AI in DuckDuckGo</a> skips the AI stuff. Mentioned during the chat.</p>
</li>
<li>
<p><a href="https://www.oliverdavies.uk/blog/speaking-about-sculpin-php-maven">Speaking about Sculpin at PHP Maven</a> the announcement Oliver made about this event.</p>
</li>
<li>
<p><a href="https://packagist.org/">Packagist</a> The PHP Package Repository</p>
</li>
<li>
<p><a href="https://getcomposer.org/">Install composer</a></p>
</li>
<li>
<p><a href="https://nix.dev/">nix</a></p>
</li>
<li>
<p><a href="https://phpsw.uk/">PHPSW</a> PHP South West UK. Bristol.</p>
</li>
</ul>
<iframe width="560" height="315" src="https://www.youtube.com/embed/-UJef7EXOiY" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
<h2 class="title is-4">Timestamps</h2>
<ul>
<li>
<p>00:00 Gabor Szabo: introduction</p>
</li>
<li>
<p>01:40 Oliver Davies starts the presentation</p>
</li>
<li>
<p>06:40 sculpin.io</p>
</li>
<li>
<p>07:20 diagrams</p>
</li>
<li>
<p>08:22 Static site generators</p>
</li>
<li>
<p>09:55 Installing Sculpin <code>composer require sculpin/sculpin</code></p>
</li>
<li>
<p>11:03 Q: What is composer?</p>
</li>
<li>
<p>12:27 Installing Sculpin with Nix</p>
</li>
<li>
<p>13:47 Run <code>sculpin</code> command to show the version number.</p>
</li>
<li>
<p>14:22 Sculpin 4</p>
</li>
<li>
<p>15:11 Q: How long does it take to build your site?</p>
</li>
<li>
<p>17:30 Start of the coding demo</p>
</li>
<li>
<p>18:50 PHPSW web site.</p>
</li>
<li>
<p>19:27 <code>sculpin init</code></p>
</li>
<li>
<p>23:30 <code>sculpin generate</code></p>
</li>
</ul>
<h2 class="title is-4">Transcript</h2>
<p>1
00:00:02.140 --&gt; 00:00:06.660
Gabor Szabo: So, hi and welcome to this session, this Code Maven session.</p>
<p>2
00:00:06.970 --&gt; 00:00:26.910
Gabor Szabo: I would like to thank, first of all, Oliver, who agreed to give this presentation, and to the audience who are present, who arrived to this meeting, and obviously to you who are watching this video on YouTube. Below the video, you will find links to our future events, and</p>
<p>3
00:00:26.990 --&gt; 00:00:40.729
Gabor Szabo: notes and links about this presentation, and obviously, it would be nice if you liked the video and followed the channel as well, but we definitely are interested also if you join us</p>
<p>4
00:00:40.740 --&gt; 00:00:52.489
Gabor Szabo: at upcoming events. My name is Gabor. I organize these events, and you will see a lot of these events in this link.</p>
<p>5
00:00:54.180 --&gt; 00:01:08.330
Gabor Szabo: People who are here, feel free to ask questions, and after the video recording is stopped, then we can continue having a free conversation, and that's why it's good for… to join these presentations.</p>
<p>6
00:01:10.130 --&gt; 00:01:21.749
Gabor Szabo: Anyway, oliver, I see that you have some… you put yourself there. We are going to have a little of you, yourself, on the top right corner as well. So, if you</p>
<p>7
00:01:21.880 --&gt; 00:01:32.840
Gabor Szabo: It's fine, I don't know how to turn that off right now, so anyway, we… that's fine. So the stage is yours, that's what I usually try to say.</p>
<p>8
00:01:32.960 --&gt; 00:01:37.680
Gabor Szabo: Go ahead, just unmute yourself, please.</p>
<p>9
00:01:38.320 --&gt; 00:01:56.340
Oliver Davies (opdavies): Okay, awesome. Yeah, I didn't want to interfere whilst you were doing your, your introduction, so… No problem. That's fine. Cool. So hopefully you can see my screen, and you can see the slides. So, I have a few… only a few slides, and then we'll jump into some live coding, and we'll see where we go from there.</p>
<p>10
00:01:57.180 --&gt; 00:02:09.950
Oliver Davies (opdavies): So, this presentation is Building Static Websites with Scalpin. I'm Oliver Davies, and I'm OP Davis, mostly everywhere online, primarily GitHub, Drupal.org, Cobra, etc.</p>
<p>11
00:02:09.949 --&gt; 00:02:20.430
Oliver Davies (opdavies): My website is oliverdavis.uk, which is powered by sculping, which we'll get onto, and you can find a link to this talk, at slash sculpin.</p>
<p>12
00:02:22.010 --&gt; 00:02:35.929
Oliver Davies (opdavies): So, speaking about my website, it started on Drupal 6, and the first post I did was in 2010. I've been primarily a Drupal developer since 2007, or 8.</p>
<p>13
00:02:35.940 --&gt; 00:02:47.070
Oliver Davies (opdavies): Really, and then my first full-time role was in 2010. So, interestingly, it's around about the same sort of time when I started doing blogging and everything else is when I moved into it full-time.</p>
<p>14
00:02:47.980 --&gt; 00:02:51.990
Oliver Davies (opdavies): And then 2015, I moved on to sculpting, and…</p>
<p>15
00:02:52.000 --&gt; 00:03:06.649
Oliver Davies (opdavies): Reasons for that was around, Drupal 8's release time, so I wanted to learn some of the new things that were coming in in Drupal 8 that I wasn't really aware of before this. So, in Drupal 7, the template is all done in PHP.</p>
<p>16
00:03:06.650 --&gt; 00:03:12.309
Oliver Davies (opdavies): And the configuration was done in PHP, so there was no twig at that point.</p>
<p>17
00:03:12.330 --&gt; 00:03:21.730
Oliver Davies (opdavies): So, I wanted to learn Twig and YAML, ready for Drupal 8, but in more focused ways, so I didn't necessarily</p>
<p>18
00:03:21.740 --&gt; 00:03:36.870
Oliver Davies (opdavies): want to learn the whole thing of Drupal 8 straight away, because there was object-oriented decode and loads of other new things in there at the time. And by this point, I was also using Jekyll, which is another static site generator, and</p>
<p>19
00:03:37.120 --&gt; 00:03:48.269
Oliver Davies (opdavies): I had one, I, being a PHP dev, wanted, would prefer to have something in PHP that I would… could know and contribute to and alter if I wanted to.</p>
<p>20
00:03:49.780 --&gt; 00:03:58.050
Oliver Davies (opdavies): So, I was looking for something that would make it quick to build, and easy to deploy, and either cheap or ideally free to host.</p>
<p>21
00:03:58.500 --&gt; 00:04:04.909
Oliver Davies (opdavies): I remember using shared hosting, with cPanel and things, and drag and drop files around.</p>
<p>22
00:04:04.960 --&gt; 00:04:24.779
Oliver Davies (opdavies): as my first version. Then moved to a virtual server, and of course, with Drupal and WordPress and those, you need PHP, and you need, databases, etc. So you need to install and maintain all of that, infrastructure just to run, for me, a fairly simple site.</p>
<p>23
00:04:25.770 --&gt; 00:04:38.719
Oliver Davies (opdavies): Now it's hosted on my home lab, which is on the shelf behind me, so I was looking for something sort of minimal, that I can host easily, and get the most performance, benefit out of.</p>
<p>24
00:04:38.770 --&gt; 00:04:54.749
Oliver Davies (opdavies): And because we all know about the recent, PHP security, issues, so it's better the fact I've got less stuff running on my server, on my overlap. There's a smaller, security, vulnerability.</p>
<p>25
00:04:54.950 --&gt; 00:04:57.989
Oliver Davies (opdavies): potential there, because I'm running less stuff.</p>
<p>26
00:04:58.990 --&gt; 00:05:18.980
Oliver Davies (opdavies): And then, on my site, it's currently showing 1,228 published posts, and 1764 index.html files. So, it's not really a small site. I feel like I'm pushing, the limits of things in some ways, sometimes, but…</p>
<p>27
00:05:19.020 --&gt; 00:05:19.910
Oliver Davies (opdavies): There we go.</p>
<p>28
00:05:21.290 --&gt; 00:05:36.569
Oliver Davies (opdavies): These are a selection of some of the files on my server, so everything is HTML. Interestingly, we were just talking about GitHub pages and static site hosting a minute ago before we started recording.</p>
<p>29
00:05:36.570 --&gt; 00:05:46.039
Oliver Davies (opdavies): So everything on the server is a .html file, or there's some CSS, but there's no PHP.</p>
<p>30
00:05:46.040 --&gt; 00:06:03.289
Oliver Davies (opdavies): There's no database, there's just, static files when you're on the server. So, everything… every page you go to on the website is a directory, or a folder, and inside that folder is an index.html file.</p>
<p>31
00:06:03.980 --&gt; 00:06:15.620
Oliver Davies (opdavies): And when you go to that page, the web server will look either for a blog.html or an index.html inside a blog folder. So…</p>
<p>32
00:06:15.790 --&gt; 00:06:32.999
Oliver Davies (opdavies): instead of having one sort of index.php that everything goes through, it's set up in this way instead, which works on any web server. So, things like, GitHub pages, or, Cloudflare pages, or Netify, like, works on any of those things.</p>
<p>33
00:06:33.170 --&gt; 00:06:38.040
Oliver Davies (opdavies): And the PHP is purely kept, local for local development.</p>
<p>34
00:06:40.180 --&gt; 00:06:42.729
Oliver Davies (opdavies): So, sculpting. Sculpting…</p>
<p>35
00:06:42.930 --&gt; 00:06:54.879
Oliver Davies (opdavies): helps you build websites, by combining Markdown content and Twig templates into static HTML files, like we just saw. They can be deployed to any web host, because it's just…</p>
<p>36
00:06:54.880 --&gt; 00:07:05.920
Oliver Davies (opdavies): HTML at this point, right? You don't need, a big, fancy, hosting setup, and, you know, say, PHP, and a database, and Kubernetes, and,</p>
<p>37
00:07:06.070 --&gt; 00:07:18.399
Oliver Davies (opdavies): load balance, everything, right? It's, mine is hosted on a simple, CADI server, on a home lab, but equally it works with, say, GitHub pages, or any of those sorts of things as well.</p>
<p>38
00:07:18.990 --&gt; 00:07:20.500
Oliver Davies (opdavies): Which is one of the big benefits.</p>
<p>39
00:07:22.480 --&gt; 00:07:32.870
Oliver Davies (opdavies): So, static site generators, typically work in this way. You have some source files, then yours, in this case, is probably going to be Markdown, or Twig.</p>
<p>40
00:07:33.280 --&gt; 00:07:44.709
Oliver Davies (opdavies): also HTML. The static side joiner lives in the middle, so you pass the source files into the generator, the generator generates stuff, and then you get static HTML out at the end.</p>
<p>41
00:07:45.000 --&gt; 00:07:47.390
Oliver Davies (opdavies): From a scoping perspective.</p>
<p>42
00:07:47.500 --&gt; 00:07:59.799
Oliver Davies (opdavies): Let's say our source files are going to be, MD files, so markdown for pages, for blog posts, etc. They could be HTML files, twig templates.</p>
<p>43
00:08:00.030 --&gt; 00:08:04.100
Oliver Davies (opdavies): And there's some YAML files in there as well, for things like configuration.</p>
<p>44
00:08:05.190 --&gt; 00:08:12.809
Oliver Davies (opdavies): And you have your normals of CSS, JavaScript, image files, etc, all live within your source folder.</p>
<p>45
00:08:13.240 --&gt; 00:08:22.120
Oliver Davies (opdavies): Sculping then sits in the middle as the site generator, sucks in all the source files, and outputs the .html files, and you're assets at the end.</p>
<p>46
00:08:24.810 --&gt; 00:08:32.149
Oliver Davies (opdavies): So, there's a lot of static site generators, there's a whole website devoted to different static site generators.</p>
<p>47
00:08:32.250 --&gt; 00:08:44.900
Oliver Davies (opdavies): The most popular ones at the moment, probably Hugo, which is written in Go. Jekyll is one of the original, or earlier ones that's written in Ruby, it's what GitHub Pages uses.</p>
<p>48
00:08:45.090 --&gt; 00:08:51.190
Oliver Davies (opdavies): Things like Astro 11T, have been around for a while as well, they're JavaScript-based.</p>
<p>49
00:08:51.330 --&gt; 00:08:53.320
Oliver Davies (opdavies): The song was written in Rust.</p>
<p>50
00:08:53.620 --&gt; 00:09:05.140
Oliver Davies (opdavies): There is one for Drupal, so you can export your Drupal site to a static HTML called Tome. And yep, there's lots of these site challenges that do the same…</p>
<p>51
00:09:05.250 --&gt; 00:09:07.519
Oliver Davies (opdavies): Same sort of thing, basically.</p>
<p>52
00:09:08.230 --&gt; 00:09:15.379
Oliver Davies (opdavies): However, my sort of take on it is Sculpin is the static site generator for PHP developers.</p>
<p>53
00:09:15.530 --&gt; 00:09:22.099
Oliver Davies (opdavies): Again, there are various other PHP CMSs, like Drupal or WordPress, that you could use.</p>
<p>54
00:09:22.130 --&gt; 00:09:36.699
Oliver Davies (opdavies): We know about frameworks, like Symphony and Laravel, and there are other site generators as well. Jigsaw is one if you're coming from a Laravel-based approach, so if you're using Blade templates and things.</p>
<p>55
00:09:36.760 --&gt; 00:09:52.309
Oliver Davies (opdavies): But if you're primarily a Symphony developer or a Drupal developer, a lot of the… it's built on Symphony components, so a lot of it is going to be familiar, and of course, if you learn Twig in one place, you know Twig, and all the other places that it's used.</p>
<p>56
00:09:52.420 --&gt; 00:09:53.200
Oliver Davies (opdavies): As well.</p>
<p>57
00:09:55.130 --&gt; 00:10:06.249
Oliver Davies (opdavies): So, how do we install it? It's a PHP package, so we can install it through Composer. It's just sculpting, sculpting on Packages, so we can… Compose requires sculpting, sculpting.</p>
<p>58
00:10:06.420 --&gt; 00:10:15.960
Oliver Davies (opdavies): You can add it per project into a Compose a JSON file for that project, or you can sort it globally, I think, still.</p>
<p>59
00:10:16.290 --&gt; 00:10:19.359
Oliver Davies (opdavies): Unless you've got conflicts and things, but I think you can still do it.</p>
<p>60
00:10:19.540 --&gt; 00:10:29.709
Oliver Davies (opdavies): There are, some built-in, some blog skeletons that are available as official ones, like the sculpian slash blog skeleton.</p>
<p>61
00:10:30.100 --&gt; 00:10:47.570
Oliver Davies (opdavies): That we can use, and I maintained one, on my side, but since I've moved it to, Seagit and off, GitHub, that may or may not still work, so we can keep that stew out of there for now, but we can try it, and if it doesn't work later on, I will…</p>
<p>62
00:10:47.810 --&gt; 00:10:56.169
Oliver Davies (opdavies): update this slide. We'll see. It's just, but it's just a more minimal, sculpting, skeleton than the one I use.</p>
<p>63
00:10:57.470 --&gt; 00:10:58.550
Oliver Davies (opdavies): So, that's your typical.</p>
<p>64
00:10:58.550 --&gt; 00:10:59.220
Gabor Szabo: What are you gonna…</p>
<p>65
00:10:59.220 --&gt; 00:11:00.350
Oliver Davies (opdavies): I have a quip.</p>
<p>66
00:11:00.350 --&gt; 00:11:01.819
Gabor Szabo: I have a question, SR.</p>
<p>67
00:11:01.820 --&gt; 00:11:02.470
Oliver Davies (opdavies): Yep, absolutely.</p>
<p>68
00:11:02.470 --&gt; 00:11:11.999
Gabor Szabo: non-PHP developer. What is Composer? Is it like the tool to install packages that comes with PHP?</p>
<p>69
00:11:12.000 --&gt; 00:11:15.239
Oliver Davies (opdavies): Yeah, exactly. So, you could go to Packages.</p>
<p>70
00:11:15.580 --&gt; 00:11:26.590
Oliver Davies (opdavies): package.org, this is the PHP package repository, so you can type in sculpin, and it will find sculpin slash sculpin, which is the project we're talking about.</p>
<p>71
00:11:26.600 --&gt; 00:11:43.700
Oliver Davies (opdavies): And it gives you the command, to run there, and gives you some stuff about the number of installs, etc. It's… if you're familiar with NPM for JavaScript, then… or Bundle for Ruby, it's the PHP equivalent of…</p>
<p>72
00:11:44.220 --&gt; 00:11:44.620
Gabor Szabo: Okay.</p>
<p>73
00:11:44.620 --&gt; 00:11:45.949
Oliver Davies (opdavies): It's how you pull in.</p>
<p>74
00:11:46.100 --&gt; 00:11:51.600
Gabor Szabo: If you install PHP on your computer, then you'll have Composer, I guess, and then you can go. So that's the…</p>
<p>75
00:11:51.800 --&gt; 00:11:53.020
Gabor Szabo: Beginning of this, right?</p>
<p>76
00:11:53.600 --&gt; 00:12:05.620
Oliver Davies (opdavies): Yeah, get composer. Composer is a separate thing, so you can download it from here, and then that will give you, the Composer binary, and then you could just say, yeah, Compose require.</p>
<p>77
00:12:05.780 --&gt; 00:12:07.399
Oliver Davies (opdavies): Whatever, but…</p>
<p>78
00:12:07.660 --&gt; 00:12:19.250
Oliver Davies (opdavies): Most things are, I'd say, are probably Composer-based now. Drupal has been since Drupal 8, and of course, Symphony that are available based on, using Composer as is… as it's scoping.</p>
<p>79
00:12:19.740 --&gt; 00:12:20.900
Gabor Szabo: Okay, thank you.</p>
<p>80
00:12:21.410 --&gt; 00:12:22.670
Oliver Davies (opdavies): No problem.</p>
<p>81
00:12:24.000 --&gt; 00:12:28.519
Oliver Davies (opdavies): So, yeah, Composer should be familiar for most PHP devs,</p>
<p>82
00:12:28.740 --&gt; 00:12:42.489
Oliver Davies (opdavies): I could also install it with Nix. So Nix is a package manager that works across operating systems, so it works on macOS and Linux, and I maintain the scalping package on Nix packages.</p>
<p>83
00:12:42.690 --&gt; 00:12:59.249
Oliver Davies (opdavies): So you could say next shell dash p for package sculpin, and it will make a shell with sculpting available. So, behind the scenes, it will download the right version of PHP, bundle it all up for you, and it'll just… just work, which is awesome.</p>
<p>84
00:13:00.240 --&gt; 00:13:18.810
Oliver Davies (opdavies): Also got a couple of templates that I use. One is PHP-based, so it still uses Nix, but uses Nix to install PHP, and then PHP and Composer manage the site, or you can go full-on using Nix itself instead of Composer, so that also works.</p>
<p>85
00:13:19.650 --&gt; 00:13:38.230
Oliver Davies (opdavies): And then something I've been doing for my own site recently, because my site is all wrapped in Nix as well, is building out a sculpting tools package with some helpers, like CreateSculpting site and create sculpting DevServer, which gives us a bit more structure and makes it easier to build, sculpting with Nix.</p>
<p>86
00:13:39.160 --&gt; 00:13:48.489
Oliver Davies (opdavies): So, whichever way you want to install it, you'll end up with a sculpting binary on your project. Let's see… so…</p>
<p>87
00:13:48.750 --&gt; 00:13:53.489
Oliver Davies (opdavies): I've got it here, right, sculpting. This is after you've installed it.</p>
<p>88
00:13:53.700 --&gt; 00:14:11.000
Oliver Davies (opdavies): And then you'll get a version number. I've just fixed that in Nix packages, today, or yesterday. So now the actual version number shows up here, rather than dev, dev slash debug. And then these are all the options that you get from sculpting, so…</p>
<p>89
00:14:11.270 --&gt; 00:14:17.939
Oliver Davies (opdavies): This is all based on, Symphony console component, so it should be pretty familiar to people.</p>
<p>90
00:14:20.960 --&gt; 00:14:38.949
Oliver Davies (opdavies): And then, I think this is the last slide before we jump into some coding. So, scoping 4 is what we're currently working on. We're currently on version, 4.0.0 Alpha 4, so I'm gonna be doing some live coding on Alpha, so let's, we may find…</p>
<p>91
00:14:39.030 --&gt; 00:14:56.900
Oliver Davies (opdavies): some things, but hopefully we'll be okay. I've been using it on my site for a little while, and then it's using PHP.5 as the minimum, and so we're going through a good modernization of sculpting internals whilst adding some new features.</p>
<p>92
00:14:57.090 --&gt; 00:15:06.710
Oliver Davies (opdavies): better performance is something I'm looking at right now, how to use, like, all the cores on your machine to build faster, especially if I've got</p>
<p>93
00:15:06.880 --&gt; 00:15:11.290
Oliver Davies (opdavies): 1,800 pages to build. I want to build that as quick as possible.</p>
<p>94
00:15:11.570 --&gt; 00:15:15.009
Gabor Szabo: Really, how long does it take for you to build your site?</p>
<p>95
00:15:15.420 --&gt; 00:15:34.569
Oliver Davies (opdavies): Mine, uncached takes about 30 seconds, because I have a lot of content, first of all, and I use, quite a lot of stuff in Twig as well, so you can use twig includes and things, so there's quite a lot for it to do, just based on the number of… on the amount of content.</p>
<p>96
00:15:34.750 --&gt; 00:15:39.939
Oliver Davies (opdavies): With the patch I'm currently working on, it's down to about 12 seconds.</p>
<p>97
00:15:40.300 --&gt; 00:15:48.889
Oliver Davies (opdavies): And… from a fresh build, so if you're watching for changes in the background, it's faster, but from nothing to build.</p>
<p>98
00:15:49.140 --&gt; 00:16:05.730
Oliver Davies (opdavies): If it's cached, it's down to about 3 seconds, but of course, as soon as you change something, it invalidates the cache, so… I'm getting there with that at the moment, so… yeah. But most sites are very quick to build, it's just I've got so much…</p>
<p>99
00:16:05.880 --&gt; 00:16:10.050
Oliver Davies (opdavies): content in there. It just takes a while to go through, go through everything.</p>
<p>100
00:16:11.170 --&gt; 00:16:15.319
Gabor Szabo: Yeah, I'm thinking about, for example, GitHub pages. Sorry if the,</p>
<p>101
00:16:15.900 --&gt; 00:16:24.019
Gabor Szabo: then probably the installation of Scalpin and all this stuff would take way more than this processing time, so…</p>
<p>102
00:16:25.130 --&gt; 00:16:36.700
Oliver Davies (opdavies): Yeah, I mean, I… because I'm using Nix as a package manager anyway, I would just use that to make it available, and then the build time, I would do probably, like, a…</p>
<p>103
00:16:37.350 --&gt; 00:16:56.929
Oliver Davies (opdavies): a pipeline, or what we do for the main sculpting docs is we build it into a docs folder, and then GitHub Pages looks at that docs folder. So, it doesn't really do any building, there, or you could do what I'm doing on my site and sort of deploy it as part of a pipeline, and then just the build site gets pushed up.</p>
<p>104
00:16:57.460 --&gt; 00:16:58.010
Gabor Szabo: Beautiful.</p>
<p>105
00:17:00.080 --&gt; 00:17:12.340
Oliver Davies (opdavies): Cool, and then, yeah, do some UX improvements to the CLI, and then doing various documentation updates, as we go, because documentation needs updating, and…</p>
<p>106
00:17:12.339 --&gt; 00:17:23.270
Oliver Davies (opdavies): Found some recognices to sculpin.json, which is an old file we used to use, back when I started using Sculping, that doesn't get supported anymore, I don't think, but…</p>
<p>107
00:17:23.380 --&gt; 00:17:26.719
Oliver Davies (opdavies): Yeah, I'm going soon documenting stuff.</p>
<p>108
00:17:28.130 --&gt; 00:17:37.579
Oliver Davies (opdavies): So, let's see, so I've got Sculpin Demo set up, so this is just an empty directory. I have Sculping, installed.</p>
<p>109
00:17:37.580 --&gt; 00:17:49.929
Oliver Davies (opdavies): And we've, we've seen, showed you that already. So, here we've got all the commands that we can run. So, we've got things like generate, that's the main one we're gonna want to run, generates the site from source.</p>
<p>110
00:17:49.990 --&gt; 00:17:57.369
Oliver Davies (opdavies): We've got init that initializes a new site. I didn't know about that until quite recently, so I was doing it by hand.</p>
<p>111
00:17:57.490 --&gt; 00:18:10.470
Oliver Davies (opdavies): Run is a new one, so that combines, serve, with a couple of other options. Run combines the options, sort of together. It opens the site up for you.</p>
<p>112
00:18:10.650 --&gt; 00:18:20.580
Oliver Davies (opdavies): And… that's pretty much, about it. So, in this directory, we have… Let's see, we have…</p>
<p>113
00:18:20.970 --&gt; 00:18:23.429
Oliver Davies (opdavies): Level, let's have a look. Level 2.</p>
<p>114
00:18:23.920 --&gt; 00:18:29.339
Oliver Davies (opdavies): Yep, in this folder, all I've got is, some sample data, and…</p>
<p>115
00:18:29.910 --&gt; 00:18:39.829
Oliver Davies (opdavies): We've got a Git directory, obviously. Some sample data that we'll come back to in a minute, but there's nothing else here in this directory tool. We are starting from scratch, other than</p>
<p>116
00:18:39.890 --&gt; 00:18:52.930
Oliver Davies (opdavies): a gitignore file that's gonna ignore some things that are gonna run. So, we are starting from scratch, and the last time I gave this talk, I did an update of, or a version of.</p>
<p>117
00:18:53.210 --&gt; 00:19:01.979
Oliver Davies (opdavies): This website, which is the PHP Southwest, website. So this is my local user group, PHP user group.</p>
<p>118
00:19:02.380 --&gt; 00:19:03.430
Oliver Davies (opdavies): And…</p>
<p>119
00:19:04.010 --&gt; 00:19:16.430
Oliver Davies (opdavies): Seeing as it's back online now, I think, again, we'll, I thought earlier on we'll, we'll see, yeah, again, what we can… what we can build, to, to, to, based on… on some of this, so…</p>
<p>120
00:19:16.560 --&gt; 00:19:22.139
Oliver Davies (opdavies): Yeah, that's not sculptor-generated, as far as I know, but</p>
<p>121
00:19:22.280 --&gt; 00:19:38.369
Oliver Davies (opdavies): We'll see. Maybe it is, I'll have to ask Dave. Cool. So, start with sculpting in it. So, first of all, we're gonna give it a title, so let's just stick with PHP Southwest, or let's type it out properly, for,</p>
<p>122
00:19:38.580 --&gt; 00:19:40.179
Oliver Davies (opdavies): Faking PHP.</p>
<p>123
00:19:42.100 --&gt; 00:19:56.390
Oliver Davies (opdavies): So then it says, will your site have blog posts? So it's not just for blogs, you can do it with, just static site, any sort of static, static content. Let's a no for now.</p>
<p>124
00:19:56.680 --&gt; 00:20:05.329
Oliver Davies (opdavies): So it shows you what it's done. So this is the folder we're in. It's made two directories, so it's made app and source.</p>
<p>125
00:20:05.600 --&gt; 00:20:07.570
Oliver Davies (opdavies): It's then said, success.</p>
<p>126
00:20:07.750 --&gt; 00:20:15.439
Oliver Davies (opdavies): And there's the command that we want to run, to start it up. So, we'll do that in a second.</p>
<p>127
00:20:15.590 --&gt; 00:20:25.530
Oliver Davies (opdavies): when GitHub comes back, I've got a PR that, is gonna add, run, scalping run, or scalper generating here, so that would be there as soon as…</p>
<p>128
00:20:25.670 --&gt; 00:20:32.310
Oliver Davies (opdavies): GitHub comes back, because for some reason, I couldn't, push to it earlier on. So we'll,</p>
<p>129
00:20:32.510 --&gt; 00:20:34.630
Oliver Davies (opdavies): Get onto that when we're ready.</p>
<p>130
00:20:36.390 --&gt; 00:20:46.560
Oliver Davies (opdavies): This is now coming into I… let's see if I can remember how to tie it out of Linux. Let's ignore that, let's ignore that. Okay, cool. So this is what we're looking for. This is…</p>
<p>131
00:20:46.900 --&gt; 00:20:54.229
Oliver Davies (opdavies): same directory we're just in, I've just hidden the sample data, hidden the Git directory, because we don't… don't care about those running.</p>
<p>132
00:20:54.480 --&gt; 00:20:58.059
Oliver Davies (opdavies): So, Scalp and Generate has made this app folder.</p>
<p>133
00:20:58.760 --&gt; 00:21:13.480
Oliver Davies (opdavies): And then made a config folder, and then let's give it 3, maybe. It's made some files inside here, got sculpting kernel and sculptinsite.yaml. It's made a placeholder, sculptingkernel.php.</p>
<p>134
00:21:13.630 --&gt; 00:21:16.130
Oliver Davies (opdavies): Because I get ignored from earlier.</p>
<p>135
00:21:16.240 --&gt; 00:21:27.470
Oliver Davies (opdavies): And then the magic stuff happens inside this source folder. So, when I go back to the slides, instead of where source files go in, that's where they'll go inside this source folder.</p>
<p>136
00:21:28.330 --&gt; 00:21:31.870
Oliver Davies (opdavies): And what's made for us, if I just go ahead and open it…</p>
<p>137
00:21:32.360 --&gt; 00:21:38.370
Oliver Davies (opdavies): is this index.md file, so it's a markdown file.</p>
<p>138
00:21:38.550 --&gt; 00:21:48.539
Oliver Davies (opdavies): And in this section here, we specify, the layout to use, so this is called the Front Matter section. So this is YAML at the top of the page.</p>
<p>139
00:21:48.620 --&gt; 00:22:02.579
Oliver Davies (opdavies): And then we've got Markdown here, and then this goes through a twig formatter as well. So, these double curly brackets here are a twig variable that we're gonna put here, so…</p>
<p>140
00:22:02.580 --&gt; 00:22:09.560
Oliver Davies (opdavies): Site.title is going to look in site, sculptingSite.yaml.</p>
<p>141
00:22:09.700 --&gt; 00:22:17.870
Oliver Davies (opdavies): And it's going to pull, this title from here, into this layout on the right-hand side, because…</p>
<p>142
00:22:18.010 --&gt; 00:22:25.909
Oliver Davies (opdavies): Site-level variables are site.whatever, and then the key on the left-hand side matches the variable name over here.</p>
<p>143
00:22:26.850 --&gt; 00:22:33.079
Oliver Davies (opdavies): So when we build it, I expect it to say, welcome to PHP Southwest, on the side there. So…</p>
<p>144
00:22:33.690 --&gt; 00:22:37.889
Oliver Davies (opdavies): We've also got the views directory, so this is where our layouts live.</p>
<p>145
00:22:38.180 --&gt; 00:22:52.369
Oliver Davies (opdavies): It also supports underscore layouts, so if you see that as well, it's the same thing. And again, this is just a twig file, so you've got double curly braces in here, so that's where the site title is going to go.</p>
<p>146
00:22:52.530 --&gt; 00:22:59.489
Oliver Davies (opdavies): And we have some blocks, so this is where we're going to define where the content lives within the template.</p>
<p>147
00:23:00.080 --&gt; 00:23:03.250
Oliver Davies (opdavies): So, again, people are familiar with Twig, they should look…</p>
<p>148
00:23:03.500 --&gt; 00:23:08.300
Oliver Davies (opdavies): pretty familiar to, you know, a Symphony project or a Drupal project.</p>
<p>149
00:23:08.920 --&gt; 00:23:15.760
Oliver Davies (opdavies): And then we've got some includes directory, where we can put some reusable components and snippets and things.</p>
<p>150
00:23:16.530 --&gt; 00:23:21.010
Oliver Davies (opdavies): In there. So, let's go back into my terminal…</p>
<p>151
00:23:22.100 --&gt; 00:23:27.959
Oliver Davies (opdavies): And then the command, if I go back up to the top level, you're going to run, is scoping…</p>
<p>152
00:23:28.740 --&gt; 00:23:31.610
Oliver Davies (opdavies): So, after you do this first. Scope and generate.</p>
<p>153
00:23:32.240 --&gt; 00:23:41.200
Oliver Davies (opdavies): So that's gonna take in, the files. I don't have it in this shell… For some reason…</p>
<p>154
00:23:41.340 --&gt; 00:23:42.539
Oliver Davies (opdavies): Let's just ruin that.</p>
<p>155
00:23:44.200 --&gt; 00:23:47.019
Oliver Davies (opdavies): Let's gonna open up a new tab. That's the problem.</p>
<p>156
00:23:49.150 --&gt; 00:23:52.690
Oliver Davies (opdavies): And source.source doesn't exist, I'm in the wrong folder.</p>
<p>157
00:23:53.430 --&gt; 00:24:01.139
Oliver Davies (opdavies): Okay, cool. So now I'm in the right folder. It's looked for the source directory, which I couldn't find, because I was inside the source directory.</p>
<p>158
00:24:02.010 --&gt; 00:24:16.440
Oliver Davies (opdavies): But now it's found it, it's generated the site, it took 0.3… 0.03 seconds, and we have this new directory. Yeah, so we've got output dev directory. So we can just run tree on output dev.</p>
<p>159
00:24:16.820 --&gt; 00:24:22.030
Oliver Davies (opdavies): And our index.md has now become index.html.</p>
<p>160
00:24:22.860 --&gt; 00:24:25.120
Oliver Davies (opdavies): So, the file name…</p>
<p>161
00:24:25.420 --&gt; 00:24:35.309
Oliver Davies (opdavies): But from here, it's just become, it's just replaced the extension. So, if this was, banana, it would become banana.html, or whatever you think is.</p>
<p>162
00:24:35.830 --&gt; 00:24:37.970
Oliver Davies (opdavies): And these are generated.</p>
<p>163
00:24:38.090 --&gt; 00:24:56.869
Oliver Davies (opdavies): HDR. So, it's taken that layout that we… that I showed it a minute ago, substituted the site title here, then substituted it within the H1 as well, and then built us a static page. So, I could take this whole directory.</p>
<p>164
00:24:57.440 --&gt; 00:25:04.859
Oliver Davies (opdavies): put it on GitHub pages, put it on my web server, or whatever, and it would run. Easy peasy.</p>
<p>165
00:25:05.120 --&gt; 00:25:08.319
Oliver Davies (opdavies): So… That's how we build the site.</p>
<p>166
00:25:08.730 --&gt; 00:25:14.339
Oliver Davies (opdavies): Let's say you could also run dash dash server, dash dash watch.</p>
<p>167
00:25:15.250 --&gt; 00:25:28.169
Oliver Davies (opdavies): I think that's probably the right combination of things. Let's go to localhost. So now it's running this site locally, for me, and you can see that it's running…</p>
<p>168
00:25:28.350 --&gt; 00:25:32.999
Oliver Davies (opdavies): It's done the template substitution here, and everything.</p>
<p>169
00:25:33.380 --&gt; 00:25:40.320
Oliver Davies (opdavies): So, the new one is… Sculpting… run.</p>
<p>170
00:25:40.830 --&gt; 00:25:43.059
Oliver Davies (opdavies): So yeah, just learned about this as well.</p>
<p>171
00:25:43.220 --&gt; 00:25:47.770
Oliver Davies (opdavies): So, that does the same thing. It does server generate…</p>
<p>172
00:25:47.950 --&gt; 00:25:52.549
Oliver Davies (opdavies): and editor, I believe, I think I've got that right. And we can see that this new…</p>
<p>173
00:26:05.520 --&gt; 00:26:06.640
Gabor Szabo: You got muted.</p>
<p>174
00:26:07.050 --&gt; 00:26:08.390
Gabor Szabo: Oliver you are muted.</p>
<p>175
00:26:08.600 --&gt; 00:26:14.289
Oliver Davies (opdavies): Sorry, okay, sorry, I was dragging the bar out of the way and must have clicked the button.</p>
<p>176
00:26:14.480 --&gt; 00:26:28.160
Oliver Davies (opdavies): So, yeah, I was saying that, yeah, now you can click Edit, and this is a new thing in Sculpting 4, is this browser editor, so I can click edit the page, and we can edit it in here, save the changes.</p>
<p>177
00:26:28.530 --&gt; 00:26:37.839
Oliver Davies (opdavies): And then it's updating that there, in real time, and also should be updating it in there as well, which I think is pretty cool.</p>
<p>178
00:26:39.770 --&gt; 00:26:46.060
Oliver Davies (opdavies): Yeah, so now we can just keep making changes in here, so we can say hello, or whatever we want.</p>
<p>179
00:26:46.240 --&gt; 00:26:53.240
Oliver Davies (opdavies): me here, and we can make lists, because this is an MD file, and go with a typical…</p>
<p>180
00:26:53.780 --&gt; 00:26:56.509
Oliver Davies (opdavies): Fruit list, for whatever reason.</p>
<p>181
00:26:56.870 --&gt; 00:26:58.700
Oliver Davies (opdavies): And you can see it's made.</p>
<p>182
00:26:58.990 --&gt; 00:27:03.990
Oliver Davies (opdavies): an actual HTML list from… from that markdown, so…</p>
<p>183
00:27:04.150 --&gt; 00:27:15.070
Oliver Davies (opdavies): Again, if you're just using GitHub pages, writing things in Markdown, you can do that, and then when it generates and builds the site, it will make proper HTML.</p>
<p>184
00:27:15.630 --&gt; 00:27:21.100
Oliver Davies (opdavies): It's HTML, with Twig, with Markdown, which is a pretty… Powerful combination.</p>
<p>185
00:27:23.510 --&gt; 00:27:31.960
Oliver Davies (opdavies): Cool. Any questions for anybody, or Kevin, anything I've missed? You want me to mention before we move on to the next… the next bit?</p>
<p>186
00:27:33.510 --&gt; 00:27:36.489
Kevin Boyd: I can't think of anything in particular.</p>
<p>187
00:27:36.490 --&gt; 00:27:37.670
Oliver Davies (opdavies): If not just carrying.</p>
<p>188
00:27:38.820 --&gt; 00:27:39.390
Kevin Boyd: Yeah.</p>
<p>189
00:27:39.610 --&gt; 00:27:42.520
Gabor Szabo: I assume there's no auto-load of the.</p>
<p>190
00:27:42.520 --&gt; 00:27:43.540
Oliver Davies (opdavies): That's, that's a good point.</p>
<p>191
00:27:43.540 --&gt; 00:27:44.240
Gabor Szabo: Nulu.</p>
<p>192
00:27:44.240 --&gt; 00:27:57.600
Oliver Davies (opdavies): So, what we'll do, let's add another page, let's call it page 2. Let's just show, like, again, we've added a new, new Markdown file, page2.md. Try not to mute myself.</p>
<p>193
00:27:57.800 --&gt; 00:28:09.420
Oliver Davies (opdavies): And you can see on this side, because we're running dash dash watch, it's noticed that there's a new file, or a file that's changed, and it's rerun. So hopefully, on this side now, we can go to page 2.</p>
<p>194
00:28:11.240 --&gt; 00:28:16.710
Oliver Davies (opdavies): And this might change the content, it would be useful, so we could see the difference.</p>
<p>195
00:28:18.990 --&gt; 00:28:22.539
Oliver Davies (opdavies): Okay, so there's page 2. So, we take out…</p>
<p>196
00:28:23.070 --&gt; 00:28:25.469
Oliver Davies (opdavies): That, we go back to the homepage.</p>
<p>197
00:28:25.660 --&gt; 00:28:28.500
Oliver Davies (opdavies): And then we go here, we're back on page 2.</p>
<p>198
00:28:28.770 --&gt; 00:28:33.240
Oliver Davies (opdavies): So, what's done in the background is made…</p>
<p>199
00:28:33.570 --&gt; 00:28:38.409
Oliver Davies (opdavies): a page 2 directory with an index or HTML file in it, so…</p>
<p>200
00:28:38.710 --&gt; 00:28:44.729
Oliver Davies (opdavies): obviously have as many of these as you want, and I have a lot of them. On my side.</p>
<p>201
00:28:45.240 --&gt; 00:28:49.060
Oliver Davies (opdavies): So… Next thing. Let's keep that running.</p>
<p>202
00:28:49.180 --&gt; 00:28:50.620
Oliver Davies (opdavies): And let's…</p>
<p>203
00:28:51.130 --&gt; 00:29:10.570
Oliver Davies (opdavies): do this. So, again, this is a… being a Drupal dev, one of the things I really liked was the idea of having, different content types. So the fact that we've got those in Sculping, yeah, it was really… so it made sense to me, because I'm used to Drupal my content in that way.</p>
<p>204
00:29:12.020 --&gt; 00:29:18.919
Oliver Davies (opdavies): Let's say we run… That again, just because I'm in yet another shell.</p>
<p>205
00:29:19.740 --&gt; 00:29:28.120
Oliver Davies (opdavies): So what we're going to use this time is this contentCreate command, and we're going to create some content types.</p>
<p>206
00:29:28.800 --&gt; 00:29:30.680
Oliver Davies (opdavies): So… still paint…</p>
<p>207
00:29:31.310 --&gt; 00:29:37.880
Oliver Davies (opdavies): So it doesn't create actual content, which I think, to me, was slightly confusing to begin with, until I realized what it did.</p>
<p>208
00:29:38.330 --&gt; 00:29:40.930
Oliver Davies (opdavies): So maybe this should be content type create.</p>
<p>209
00:29:41.190 --&gt; 00:29:43.470
Oliver Davies (opdavies): But there we are, so…</p>
<p>210
00:29:43.940 --&gt; 00:29:47.199
Oliver Davies (opdavies): The first thing it tells me, there's not enough arguments, so…</p>
<p>211
00:29:47.250 --&gt; 00:30:04.399
Oliver Davies (opdavies): What we're gonna build is, let's say, a clone of PHP Meetup Group site, and we'll have talks and speakers. So, rather than everything being just a page, we'll go ahead and we'll make content type for both of those things.</p>
<p>212
00:30:05.180 --&gt; 00:30:12.310
Oliver Davies (opdavies): So, this command is helpful, it just tells you what things are that you need to add for it to work.</p>
<p>213
00:30:13.300 --&gt; 00:30:23.119
Oliver Davies (opdavies): This indentation is a little bit broken, as well. I've got another PR open, when GitHub comes back for that, because I always go… I notice that when going through this.</p>
<p>214
00:30:23.870 --&gt; 00:30:26.679
Oliver Davies (opdavies): For rehearsing for this earlier on.</p>
<p>215
00:30:26.980 --&gt; 00:30:33.450
Oliver Davies (opdavies): And this goes in the, app config sculpting kernel file.</p>
<p>216
00:30:34.010 --&gt; 00:30:43.499
Oliver Davies (opdavies): So we have the duplication there, don't need that, and it's… because YAML… let's make sure everything is…</p>
<p>217
00:30:44.040 --&gt; 00:30:46.409
Oliver Davies (opdavies): Sorted out properly, so…</p>
<p>218
00:30:47.610 --&gt; 00:30:53.729
Oliver Davies (opdavies): Posts are still, here, we just, disabled it, otherwise it would be complaining that there's…</p>
<p>219
00:30:53.870 --&gt; 00:30:55.699
Oliver Davies (opdavies): They're on the posts.</p>
<p>220
00:30:56.180 --&gt; 00:31:05.370
Oliver Davies (opdavies): But we can add, a new one called speakers. Most of this, I think, is just boilerplate.</p>
<p>221
00:31:05.760 --&gt; 00:31:07.939
Oliver Davies (opdavies): So it's sort of implied.</p>
<p>222
00:31:08.350 --&gt; 00:31:10.750
Oliver Davies (opdavies): Type is path by default.</p>
<p>223
00:31:11.220 --&gt; 00:31:18.570
Oliver Davies (opdavies): path, it always becomes underscore something, by default. Singular name just takes the S off the end.</p>
<p>224
00:31:18.990 --&gt; 00:31:22.250
Oliver Davies (opdavies): Layout will keep…</p>
<p>225
00:31:23.000 --&gt; 00:31:30.100
Oliver Davies (opdavies): And then… I think enable just choose default. Let's see if, we can get by with just… just that.</p>
<p>226
00:31:32.110 --&gt; 00:31:37.970
Oliver Davies (opdavies): Let's go back, so I'm not running this double back, so… That's…</p>
<p>227
00:31:38.100 --&gt; 00:31:42.910
Oliver Davies (opdavies): Start running it. Okay, so it's registered it, and said, we didn't find…</p>
<p>228
00:31:43.060 --&gt; 00:31:57.360
Oliver Davies (opdavies): at least one of this type. We've declared a content type, but obviously we haven't… haven't made any of them yet, and it keeps reminding me that that's a thing, until I go ahead and do it. So, while I'm here…</p>
<p>229
00:31:57.880 --&gt; 00:32:02.330
Oliver Davies (opdavies): Let's do, let's change speaker to talk.</p>
<p>230
00:32:02.640 --&gt; 00:32:04.699
Oliver Davies (opdavies): As well, we'll do that in both places.</p>
<p>231
00:32:05.400 --&gt; 00:32:08.380
Oliver Davies (opdavies): So now we've got 2 new custom content types.</p>
<p>232
00:32:08.760 --&gt; 00:32:11.779
Oliver Davies (opdavies): And so hopefully it's probably gonna complain now that I've got…</p>
<p>233
00:32:12.380 --&gt; 00:32:15.279
Oliver Davies (opdavies): Two content types that don't exist.</p>
<p>234
00:32:15.730 --&gt; 00:32:18.359
Oliver Davies (opdavies): Or, maybe it's just got a paper about one.</p>
<p>235
00:32:18.950 --&gt; 00:32:28.579
Oliver Davies (opdavies): Anyway, so, what we're gonna have, once I start adding these in, is a page for each speaker, and a page for each talk.</p>
<p>236
00:32:28.790 --&gt; 00:32:41.250
Oliver Davies (opdavies): And the permalink, or the URL is going to be the site name slash speakers slash the title, and then, for talk, it's gonna be talk slash talk slash title. Don't acceptable.</p>
<p>237
00:32:42.540 --&gt; 00:32:51.419
Oliver Davies (opdavies): So, this is where my sample content comes in. I'm just gonna copy this from here, and I'm just gonna paste it into my folder.</p>
<p>238
00:32:52.100 --&gt; 00:32:57.509
Oliver Davies (opdavies): Let me just do that. So, rather than watching me type a load of Markdown out.</p>
<p>239
00:32:57.720 --&gt; 00:33:07.700
Oliver Davies (opdavies): The name, so here, the speaker's content type is underscore speakers, and then underscore talks is for talks.</p>
<p>240
00:33:07.990 --&gt; 00:33:14.429
Oliver Davies (opdavies): So that's all based on the content type name that we gave it, and then we'll just leave it as the default.</p>
<p>241
00:33:16.100 --&gt; 00:33:19.699
Oliver Davies (opdavies): So, it's no longer complaining that</p>
<p>242
00:33:19.880 --&gt; 00:33:23.199
Oliver Davies (opdavies): There are no speakers or talks, because there are some now.</p>
<p>243
00:33:23.310 --&gt; 00:33:33.559
Oliver Davies (opdavies): But what it's complaining about now is the template called Speaker is not defined. So, each content type gets its own template type.</p>
<p>244
00:33:33.660 --&gt; 00:33:39.330
Oliver Davies (opdavies): So it's looking for a speaker.twig, or a speaker.html.twig.</p>
<p>245
00:33:39.500 --&gt; 00:33:43.529
Oliver Davies (opdavies): So, here I will copy that across as well.</p>
<p>246
00:33:44.440 --&gt; 00:33:51.300
Oliver Davies (opdavies): Just yank those, put those in views, and we'll put it next to the default template.</p>
<p>247
00:33:53.330 --&gt; 00:34:00.139
Oliver Davies (opdavies): So, sometimes it gets a bit stuck. Sometimes we need to restart it for it to pick up the new things.</p>
<p>248
00:34:00.430 --&gt; 00:34:04.620
Oliver Davies (opdavies): But now it's not complaining about any missing… Template files.</p>
<p>249
00:34:05.000 --&gt; 00:34:09.840
Oliver Davies (opdavies): All these ones do is they extend the default template.</p>
<p>250
00:34:10.060 --&gt; 00:34:19.919
Oliver Davies (opdavies): So they're not doing… they're just… it's Twig, so we've got inheritance, and we can extend any other template that we want to extend, in case default.</p>
<p>251
00:34:20.360 --&gt; 00:34:21.139
Oliver Davies (opdavies): So…</p>
<p>252
00:34:21.340 --&gt; 00:34:26.660
Oliver Davies (opdavies): Of course, to speakers, we want to show different stuff, so that's where you would… you would do that.</p>
<p>253
00:34:26.969 --&gt; 00:34:27.770
Oliver Davies (opdavies): What's up?</p>
<p>254
00:34:28.600 --&gt; 00:34:31.170
Oliver Davies (opdavies): Let's go back to this and see where we were.</p>
<p>255
00:34:31.969 --&gt; 00:34:44.300
Oliver Davies (opdavies): So, back to our index. Actually, I haven't actually want to see these. So, speakers, each speaker is its own markdown file, and these are a selection of the speakers that we had at the user group.</p>
<p>256
00:34:44.409 --&gt; 00:34:52.369
Oliver Davies (opdavies): Over the years, and obviously this isn't… isn't the whole list, but I've just picked a couple, at random.</p>
<p>257
00:34:52.590 --&gt; 00:34:56.350
Oliver Davies (opdavies): And what I've done is, in the front matter section.</p>
<p>258
00:34:56.659 --&gt; 00:35:11.570
Oliver Davies (opdavies): The name of the person is the title of the page, and then the image is just their name, with the image extension at the end. This could be name, and this could be anything, like photo, or avatar.</p>
<p>259
00:35:11.820 --&gt; 00:35:17.289
Oliver Davies (opdavies): If I type it… It doesn't matter what they're called from a…</p>
<p>260
00:35:17.880 --&gt; 00:35:23.940
Oliver Davies (opdavies): front matter perspective, as long as they match in the template.</p>
<p>261
00:35:24.810 --&gt; 00:35:27.710
Oliver Davies (opdavies): So, I'll keep them as that for now.</p>
<p>262
00:35:27.890 --&gt; 00:35:32.679
Oliver Davies (opdavies): And then… Everyone's got a title, everyone's got an image.</p>
<p>263
00:35:32.870 --&gt; 00:35:39.389
Oliver Davies (opdavies): Some of it's got links, so a link to websites or, whatever. Again, I'm just…</p>
<p>264
00:35:40.090 --&gt; 00:35:46.190
Oliver Davies (opdavies): Go back on PHP Southwest… Let's find… Speakers.</p>
<p>265
00:35:47.210 --&gt; 00:35:49.440
Oliver Davies (opdavies): Let's look at Davies, maybe.</p>
<p>266
00:35:49.740 --&gt; 00:36:03.780
Oliver Davies (opdavies): Dave doesn't know I'm doing this, by the way. He's kind of a bit of a bit of a shock. So yeah, Dave is the current, sort of, organiser. So you can see here, he's got, his name, and then, his little, sort of, subtitle slash description.</p>
<p>267
00:36:03.820 --&gt; 00:36:14.849
Oliver Davies (opdavies): That's what I've put as the body area, and then this little elsewhere section is links, so I've put those under links here. This is just a YAML list of links.</p>
<p>268
00:36:16.010 --&gt; 00:36:20.399
Oliver Davies (opdavies): Some have them, some don't have them, so it… it depends.</p>
<p>269
00:36:20.580 --&gt; 00:36:31.540
Oliver Davies (opdavies): Some… some of them are really basic, and then some of them are a bit more… mine, again, mine, I've put my image and my links and everything in there, so…</p>
<p>270
00:36:32.920 --&gt; 00:36:42.870
Oliver Davies (opdavies): This is similar to, how things like content types and fields work in Drupal, or, WordPress is, like, advanced custom fields or something.</p>
<p>271
00:36:42.980 --&gt; 00:36:53.290
Oliver Davies (opdavies): So I can sort of see in my mind how this would sort of translate to a Drupal form, and be like, you know, now I need to add an image field called image, and a field called links.</p>
<p>272
00:36:54.830 --&gt; 00:36:59.920
Oliver Davies (opdavies): And then on the other side, we've got Torx. So, Torx is,</p>
<p>273
00:37:00.050 --&gt; 00:37:04.809
Oliver Davies (opdavies): Another type, what the title, the date of the talk.</p>
<p>274
00:37:04.940 --&gt; 00:37:11.050
Oliver Davies (opdavies): And then the speakers. So, this name matches the speaker name. So…</p>
<p>275
00:37:11.300 --&gt; 00:37:18.689
Oliver Davies (opdavies): sort of mine, sort of Rob's. So, yeah, you get the idea, they're all sort of the, sort of the same. So…</p>
<p>276
00:37:19.680 --&gt; 00:37:26.919
Oliver Davies (opdavies): If we go back to our example… Let's say we wanted to… Have our homepage?</p>
<p>277
00:37:27.300 --&gt; 00:37:32.059
Oliver Davies (opdavies): Let's delete this, let's keep the hello, why not? The H1.</p>
<p>278
00:37:33.940 --&gt; 00:37:38.200
Oliver Davies (opdavies): And then… start from scratch. So, let's say…</p>
<p>279
00:37:38.320 --&gt; 00:37:43.690
Oliver Davies (opdavies): The H1 is already there, so let's say our H2 is going to be speakers.</p>
<p>280
00:37:44.290 --&gt; 00:37:47.100
Oliver Davies (opdavies): And, you know, for now, this is just…</p>
<p>281
00:37:47.690 --&gt; 00:37:51.450
Oliver Davies (opdavies): Even though it's a markdown file, it could be a twig file.</p>
<p>282
00:37:51.610 --&gt; 00:37:58.150
Oliver Davies (opdavies): But, HTML still works, and Twig still works. So we can write Twig stuff here.</p>
<p>283
00:37:58.920 --&gt; 00:38:03.380
Oliver Davies (opdavies): So, speakers. So we can say, TWIG,</p>
<p>284
00:38:03.510 --&gt; 00:38:13.150
Oliver Davies (opdavies): the do-something syntax, is what I was referring to as, could embrace, percentage. So we can say 4, speaker in…</p>
<p>285
00:38:13.340 --&gt; 00:38:18.010
Oliver Davies (opdavies): Data dots, because… I wonder when we can end.</p>
<p>286
00:38:19.360 --&gt; 00:38:30.940
Oliver Davies (opdavies): So, remember I said earlier on that, site variables were site.something? The other one we could have is, like, page-level ones. We could say,</p>
<p>287
00:38:32.260 --&gt; 00:38:35.740
Oliver Davies (opdavies): Start year is, like, I don't know, 2020.</p>
<p>288
00:38:36.020 --&gt; 00:38:40.250
Oliver Davies (opdavies): And so that would be a page variable, so I could say page.startyo.</p>
<p>289
00:38:41.050 --&gt; 00:38:41.989
Oliver Davies (opdavies): If I could talk.</p>
<p>290
00:38:45.880 --&gt; 00:38:47.840
Oliver Davies (opdavies): Stop.</p>
<p>291
00:38:48.530 --&gt; 00:38:49.610
Oliver Davies (opdavies): That should be there.</p>
<p>292
00:38:50.160 --&gt; 00:38:52.649
Oliver Davies (opdavies): And there we go, it takes a few seconds.</p>
<p>293
00:38:53.020 --&gt; 00:39:06.880
Oliver Davies (opdavies): So, that's the three, sort of, levels we've got. We've got site-level variables that come from the scoping site file, page variables that come from the front matter area, and then data speakers is from other</p>
<p>294
00:39:07.190 --&gt; 00:39:08.310
Oliver Davies (opdavies): content types.</p>
<p>295
00:39:08.430 --&gt; 00:39:13.670
Oliver Davies (opdavies): So, it's not working yet, there's nothing there. We'll get to that in a second, but…</p>
<p>296
00:39:13.890 --&gt; 00:39:27.500
Oliver Davies (opdavies): Well, whilst we've got the date there, on here somewhere, it says, yeah, 15 years it's been going, it's been going. So, let's say, it started in, I don't know, what was it, 2010, maybe?</p>
<p>297
00:39:27.600 --&gt; 00:39:42.190
Oliver Davies (opdavies): So, the start year for this is going to be… not 2010, but 2010. Like, we don't want to have to update that manually every time, so we can use some twig magic in here, and we can say,</p>
<p>298
00:39:42.480 --&gt; 00:39:50.210
Oliver Davies (opdavies): Sorry, let me get it wrong now, right? Oh, no, sorry, it's, today.</p>
<p>299
00:39:50.560 --&gt; 00:39:53.969
Oliver Davies (opdavies): We want to make this dynamic, right? We want the site to figure out what…</p>
<p>300
00:39:54.280 --&gt; 00:39:57.009
Oliver Davies (opdavies): What it is. So we can say…</p>
<p>301
00:39:57.350 --&gt; 00:40:01.189
Oliver Davies (opdavies): Hopefully I've got that right. So we can say today is a string.</p>
<p>302
00:40:01.360 --&gt; 00:40:14.709
Oliver Davies (opdavies): pass it through a filter called date, and then there we say we want the format of the date to be Y, so the current year, and then from that we want to subtract the start year, which we know is 2010, so…</p>
<p>303
00:40:14.880 --&gt; 00:40:20.210
Oliver Davies (opdavies): 16. Okay, my maths is not good. So let's say it started in…</p>
<p>304
00:40:20.490 --&gt; 00:40:26.690
Oliver Davies (opdavies): 29th, so it started in… Let me put a full stop again.</p>
<p>305
00:40:27.680 --&gt; 00:40:31.979
Oliver Davies (opdavies): Oh, I've done the wrong ground. Live maths.</p>
<p>306
00:40:37.170 --&gt; 00:40:38.980
Oliver Davies (opdavies): Yeah, there we are started.</p>
<p>307
00:40:43.200 --&gt; 00:40:43.940
Oliver Davies (opdavies): Yes.</p>
<p>308
00:40:46.220 --&gt; 00:41:00.970
Oliver Davies (opdavies): So, even though we're talking about static sites, as in they're just HTML and CSS, etc, they can be quite dynamic, and they can have variables and things in them that say, like, every time you build.</p>
<p>309
00:41:01.070 --&gt; 00:41:10.930
Oliver Davies (opdavies): yeah, it's gonna calculate whatever the current day is, and… or the year is, and do something with that data. So, think of,</p>
<p>310
00:41:10.980 --&gt; 00:41:23.769
Oliver Davies (opdavies): copyright years, for example. You don't have to go in and change that manually all the time, so we can make that dynamic build time, and then export it out to a static site at the end.</p>
<p>311
00:41:24.760 --&gt; 00:41:27.559
Gabor Szabo: To try to ask a question again. Olivier, can you hear me?</p>
<p>312
00:41:27.900 --&gt; 00:41:28.909
Oliver Davies (opdavies): I can hear you, yes.</p>
<p>313
00:41:28.910 --&gt; 00:41:35.609
Gabor Szabo: Oh, excellent. I thought you can't hear us. So… so this trig… this is Strig, the… the computation…</p>
<p>314
00:41:35.610 --&gt; 00:41:45.589
Oliver Davies (opdavies): This is, this is the quarter twig, right? Yep, this is Twig, PHP. So it's, it's templated language used by Symphony.</p>
<p>315
00:41:45.870 --&gt; 00:42:00.139
Oliver Davies (opdavies): And then also used by other projects, like Drupal. So instead of, say, PHP tags, like I would have done in Drupal 7, we used double curly brace to echo or print something.</p>
<p>316
00:42:00.150 --&gt; 00:42:09.540
Oliver Davies (opdavies): And we can use this, can't this, do something syntax with curly percent to do things like if statements, for loops, etc.</p>
<p>317
00:42:09.810 --&gt; 00:42:11.929
Oliver Davies (opdavies): Yeah, so it's…</p>
<p>318
00:42:12.180 --&gt; 00:42:18.900
Oliver Davies (opdavies): again, if you're used to using Symphony, or Drupal, or anything else that uses Twig, then, yeah, this one.</p>
<p>319
00:42:18.900 --&gt; 00:42:28.189
Gabor Szabo: They're similar to Ginger in Python. I didn't know that in Ginger you can do these computations, but I'll look it up.</p>
<p>320
00:42:29.390 --&gt; 00:42:36.620
Oliver Davies (opdavies): yeah, again, it's very similar to, sort of, JSX, and, like, Rust uses double curlies as well, so…</p>
<p>321
00:42:36.820 --&gt; 00:42:38.420
Oliver Davies (opdavies): She's pretty familiar,</p>
<p>322
00:42:38.420 --&gt; 00:42:41.280
Gabor Szabo: Yeah, yeah, just I didn't know about the computations.</p>
<p>323
00:42:41.620 --&gt; 00:42:43.550
Oliver Davies (opdavies): Cool.</p>
<p>324
00:42:43.670 --&gt; 00:42:57.689
Oliver Davies (opdavies): So, let's go back to this. So, let's say we want a list of our speakers. So, for speaker in, date speakers, that is currently empty. We haven't actually added anything yet. Speaker…</p>
<p>325
00:42:58.470 --&gt; 00:42:59.500
Oliver Davies (opdavies): That's it.</p>
<p>326
00:43:00.390 --&gt; 00:43:01.630
Oliver Davies (opdavies): And…</p>
<p>327
00:43:02.970 --&gt; 00:43:22.120
Oliver Davies (opdavies): We'll do that as a second. This is why I've kept it as title rather than name. I want to have some consistency, when I'm doing the template inside. But it's still empty, right? There's no… there's no speakers coming through yet, and it's just a thing, usually say use, speakers.</p>
<p>328
00:43:23.170 --&gt; 00:43:24.610
Oliver Davies (opdavies): To bring it into scope.</p>
<p>329
00:43:25.280 --&gt; 00:43:31.750
Oliver Davies (opdavies): So that makes all the speakers available to this page. You don't get them by default.</p>
<p>330
00:43:32.340 --&gt; 00:43:35.000
Oliver Davies (opdavies): So, here are all of our names.</p>
<p>331
00:43:35.200 --&gt; 00:43:38.660
Oliver Davies (opdavies): And let's say we want to wrap this in a list.</p>
<p>332
00:43:43.190 --&gt; 00:43:44.539
Oliver Davies (opdavies): Close the list.</p>
<p>333
00:43:45.740 --&gt; 00:43:50.449
Oliver Davies (opdavies): Watching HP dev type HTML. It's always fun.</p>
<p>334
00:43:51.130 --&gt; 00:43:55.150
Oliver Davies (opdavies): And make that an ally, close the ally, and that will do that.</p>
<p>335
00:43:55.280 --&gt; 00:43:57.120
Oliver Davies (opdavies): But, hopefully we can have a list.</p>
<p>336
00:43:57.540 --&gt; 00:43:58.950
Oliver Davies (opdavies): Thanks. Cool.</p>
<p>337
00:43:59.100 --&gt; 00:44:05.309
Oliver Davies (opdavies): Right, there's all of our speakers, and then… let's do the same, for the talks.</p>
<p>338
00:44:05.820 --&gt; 00:44:07.310
Oliver Davies (opdavies): Let's make it this a choice.</p>
<p>339
00:44:09.390 --&gt; 00:44:20.279
Oliver Davies (opdavies): I mean, I'm not gonna rebuild the whole website, we could, but, Gabor also, he's got work tomorrow, so we could, we could. So let's just replace speaker with talk…</p>
<p>340
00:44:20.450 --&gt; 00:44:21.490
Oliver Davies (opdavies): Let's do that.</p>
<p>341
00:44:21.640 --&gt; 00:44:22.880
Oliver Davies (opdavies): And then…</p>
<p>342
00:44:23.950 --&gt; 00:44:33.859
Oliver Davies (opdavies): Should be the same, right? It's the same for loop, I've just replaced, talk in data.talks with the talk title rather than the speaker title.</p>
<p>343
00:44:34.020 --&gt; 00:44:35.959
Oliver Davies (opdavies): What's sort of what I've done now?</p>
<p>344
00:44:36.740 --&gt; 00:44:38.949
Oliver Davies (opdavies): So, there's our talk.</p>
<p>345
00:44:39.170 --&gt; 00:44:44.079
Oliver Davies (opdavies): heading. Again, we need to just bring this into scope here.</p>
<p>346
00:44:44.860 --&gt; 00:44:49.989
Oliver Davies (opdavies): To make those all come through… Jesus.</p>
<p>347
00:44:50.750 --&gt; 00:45:00.149
Oliver Davies (opdavies): Speakers Talks… Full talk and data talks, talk title…</p>
<p>348
00:45:00.150 --&gt; 00:45:11.270
Gabor Szabo: Can you do, verification, data verification? For example, you have presentations, and each presentation has a speaker, and whether you have that,</p>
<p>349
00:45:11.530 --&gt; 00:45:13.889
Gabor Szabo: Written correctly in the data.</p>
<p>350
00:45:14.470 --&gt; 00:45:24.349
Oliver Davies (opdavies): Yep, we'll… yeah, it's sort of a database, really, in the background. So yeah, we'll look at that, if I could figure out why these talks are running.</p>
<p>351
00:45:25.180 --&gt; 00:45:28.530
Oliver Davies (opdavies): It's not until I got the right variable name.</p>
<p>352
00:45:29.960 --&gt; 00:45:33.550
Oliver Davies (opdavies): speakers… that talks BDD.</p>
<p>353
00:45:34.510 --&gt; 00:45:39.470
Oliver Davies (opdavies): Title… That title should match that title.</p>
<p>354
00:45:43.700 --&gt; 00:45:47.370
Oliver Davies (opdavies): Must be missing something. We are using it, so it should be there.</p>
<p>355
00:45:50.530 --&gt; 00:45:53.450
Oliver Davies (opdavies): Talks… Title.</p>
<p>356
00:45:53.640 --&gt; 00:45:55.700
Oliver Davies (opdavies): Yep, why are these not coming through?</p>
<p>357
00:45:56.410 --&gt; 00:45:57.580
Kevin Boyd: A regenerator?</p>
<p>358
00:45:59.280 --&gt; 00:46:00.210
Oliver Davies (opdavies): So I can?</p>
<p>359
00:46:00.480 --&gt; 00:46:01.710
Kevin Boyd: Did you restart the generator?</p>
<p>360
00:46:02.150 --&gt; 00:46:05.780
Oliver Davies (opdavies): I did not, but let's try again.</p>
<p>361
00:46:09.920 --&gt; 00:46:15.600
Oliver Davies (opdavies): Interestingly, it did tell me earlier on there wasn't any talks when it was building either.</p>
<p>362
00:46:17.790 --&gt; 00:46:19.899
Oliver Davies (opdavies): Oh, there we go. It was a…</p>
<p>363
00:46:20.240 --&gt; 00:46:23.350
Oliver Davies (opdavies): Switch it off and on again situation.</p>
<p>364
00:46:23.550 --&gt; 00:46:28.020
Oliver Davies (opdavies): So… There's all of our speakers, there's all the talks.</p>
<p>365
00:46:28.330 --&gt; 00:46:33.950
Oliver Davies (opdavies): So yeah, let's do something like the board was just saying, let's do something… something cool.</p>
<p>366
00:46:34.230 --&gt; 00:46:39.400
Oliver Davies (opdavies): So, let's… Delete this anymore, go away.</p>
<p>367
00:46:39.570 --&gt; 00:46:44.830
Oliver Davies (opdavies): Right, so each one of these has got a link, so we'll make this into a link.</p>
<p>368
00:46:46.040 --&gt; 00:46:48.830
Oliver Davies (opdavies): So just our normal AHRF.</p>
<p>369
00:46:49.090 --&gt; 00:46:52.800
Oliver Davies (opdavies): Style links, and we will…</p>
<p>370
00:46:56.170 --&gt; 00:46:58.619
Oliver Davies (opdavies): DT4 slot. What's going on?</p>
<p>371
00:46:58.940 --&gt; 00:47:00.680
Oliver Davies (opdavies): Oh, I see. Boyd.</p>
<p>372
00:47:01.060 --&gt; 00:47:10.839
Oliver Davies (opdavies): My brain goes faster than my… than my fingers sometimes. Cool. Okay, so to put in the link, we can say speaker.url.</p>
<p>373
00:47:11.560 --&gt; 00:47:26.880
Oliver Davies (opdavies): So that will get the URL to each speaker's page. If you can see at the bottom left, we've got speakers slash Dan Leitch, and there's Dan Leitch's, subtitle, there's Kieran's subtitle.</p>
<p>374
00:47:26.960 --&gt; 00:47:31.579
Oliver Davies (opdavies): So it's made all of these pages, just from those Markdown files.</p>
<p>375
00:47:31.720 --&gt; 00:47:33.560
Oliver Davies (opdavies): Which is cool.</p>
<p>376
00:47:34.680 --&gt; 00:47:43.320
Oliver Davies (opdavies): These are all in the right order, I think, alphabetically, just because of the way it's loaded them. These are not, so…</p>
<p>377
00:47:43.500 --&gt; 00:47:46.239
Oliver Davies (opdavies): What I'd like to do is do the same thing.</p>
<p>378
00:47:46.720 --&gt; 00:47:50.280
Oliver Davies (opdavies): Here, and let's make these all links as well.</p>
<p>379
00:47:50.570 --&gt; 00:47:56.510
Oliver Davies (opdavies): First… And of course, not the speaker, it seems to be talk.</p>
<p>380
00:47:57.570 --&gt; 00:48:00.429
Oliver Davies (opdavies): And this should hopefully be a list of links now as well, so…</p>
<p>381
00:48:00.650 --&gt; 00:48:04.300
Oliver Davies (opdavies): These are all talks slash something. So…</p>
<p>382
00:48:04.470 --&gt; 00:48:20.819
Oliver Davies (opdavies): instead of going into a UI and, editing, Drupal Admin or something, we can do this all through these Markdown files, or we can use this edit the page thing, which is cool. So yeah, it does update all that as well.</p>
<p>383
00:48:21.080 --&gt; 00:48:22.630
Oliver Davies (opdavies): Which is… awesome.</p>
<p>384
00:48:24.090 --&gt; 00:48:25.240
Oliver Davies (opdavies): So…</p>
<p>385
00:48:25.440 --&gt; 00:48:40.319
Oliver Davies (opdavies): A bit more twig. These are all in a slightly wrong order. So we've got Nix for developers, FPGA, blah, blah, right? So let's say we want them sorted by, the title. We can use twig again, just like sort.</p>
<p>386
00:48:40.560 --&gt; 00:48:45.200
Oliver Davies (opdavies): Then we get A, A, B, part of the function.</p>
<p>387
00:48:45.950 --&gt; 00:48:48.580
Oliver Davies (opdavies): And a dot title…</p>
<p>388
00:48:50.340 --&gt; 00:48:54.359
Oliver Davies (opdavies): I think it's where we can do Spaceship Operator, this is a bit title, I think.</p>
<p>389
00:48:55.530 --&gt; 00:48:57.289
Oliver Davies (opdavies): I guess it's probably a better way of doing that.</p>
<p>390
00:49:00.080 --&gt; 00:49:03.560
Oliver Davies (opdavies): And take those… that bracket off, that probably helps.</p>
<p>391
00:49:03.710 --&gt; 00:49:10.340
Oliver Davies (opdavies): Okay, so now it's sorted all the talks alphabetically, so I didn't… I don't need to do that manually anymore, which is awesome.</p>
<p>392
00:49:12.210 --&gt; 00:49:21.710
Oliver Davies (opdavies): let's say our speakers, we want to pull through those subtitles, so we can say, speaker… Drop blocks.</p>
<p>393
00:49:22.290 --&gt; 00:49:27.950
Oliver Davies (opdavies): dot content… That's the name of the block where that content lives.</p>
<p>394
00:49:28.300 --&gt; 00:49:31.050
Oliver Davies (opdavies): And it's pulling through now all of the…</p>
<p>395
00:49:31.180 --&gt; 00:49:34.940
Oliver Davies (opdavies): Subtitles, or the body content before them.</p>
<p>396
00:49:35.050 --&gt; 00:49:41.089
Oliver Davies (opdavies): We don't want the HTML, so we can play rule for this, so it gets rid of…</p>
<p>397
00:49:41.820 --&gt; 00:49:44.910
Oliver Davies (opdavies): the, the HT… The,</p>
<p>398
00:49:45.960 --&gt; 00:49:51.309
Oliver Davies (opdavies): I think… oh, mine's a bit more, I think we can create strip tags as well, if you don't want the…</p>
<p>399
00:49:51.800 --&gt; 00:49:54.040
Oliver Davies (opdavies): The things.</p>
<p>400
00:49:54.260 --&gt; 00:49:57.329
Oliver Davies (opdavies): Yeah, so it's got rid of HTML completely now.</p>
<p>401
00:49:57.850 --&gt; 00:50:01.059
Oliver Davies (opdavies): So this is what we've got right now.</p>
<p>402
00:50:01.430 --&gt; 00:50:04.669
Oliver Davies (opdavies): Kieran slash developer, so let's put a…</p>
<p>403
00:50:05.670 --&gt; 00:50:08.659
Oliver Davies (opdavies): Little separator there, just so we can see.</p>
<p>404
00:50:09.460 --&gt; 00:50:12.700
Oliver Davies (opdavies): Actually, you know, let's move… let's move that out with the link.</p>
<p>405
00:50:13.560 --&gt; 00:50:15.759
Oliver Davies (opdavies): There we go, just to make it a little bit clearer.</p>
<p>406
00:50:16.550 --&gt; 00:50:17.600
Oliver Davies (opdavies): Here we are.</p>
<p>407
00:50:19.080 --&gt; 00:50:24.199
Oliver Davies (opdavies): This isn't a CSS presentation, by the way. We're just doing a… Yeah.</p>
<p>408
00:50:24.350 --&gt; 00:50:28.510
Oliver Davies (opdavies): This is not really… I've got a different talk talking about CSS until the entire…</p>
<p>409
00:50:28.890 --&gt; 00:50:32.259
Oliver Davies (opdavies): Okay, you can watch that one, separately if you'd like.</p>
<p>410
00:50:33.640 --&gt; 00:50:49.660
Oliver Davies (opdavies): So, that's pulling through all the subtitles for the people. Some of them don't have them, so, like, Mike and Naomi don't have them. So, in this case, we don't want this dash there, so we can use if.</p>
<p>411
00:50:50.020 --&gt; 00:50:53.920
Oliver Davies (opdavies): I'm gonna say, speaker… blocks.</p>
<p>412
00:50:55.190 --&gt; 00:50:57.809
Oliver Davies (opdavies): Content, and then we can end.</p>
<p>413
00:50:58.380 --&gt; 00:51:03.289
Oliver Davies (opdavies): But if, yeah, so… Again, we can do some quite dynamic stuff.</p>
<p>414
00:51:03.750 --&gt; 00:51:05.760
Oliver Davies (opdavies): With this, so,</p>
<p>415
00:51:06.050 --&gt; 00:51:16.509
Oliver Davies (opdavies): But again, it all just generates plain HTML at the end of the day, right? This is all done locally at build time, so it's pre-rendering everything.</p>
<p>416
00:51:16.510 --&gt; 00:51:18.210
Gabor Szabo: to the database again?</p>
<p>417
00:51:18.890 --&gt; 00:51:24.639
Oliver Davies (opdavies): Sure. So I will split this, and…</p>
<p>418
00:51:25.250 --&gt; 00:51:26.720
Oliver Davies (opdavies): Which one did you want to see?</p>
<p>419
00:51:27.720 --&gt; 00:51:30.110
Oliver Davies (opdavies): It's like, I'll open this here, and I'll open…</p>
<p>420
00:51:31.230 --&gt; 00:51:34.774
Oliver Davies (opdavies): Not done that, right? So you can see…</p>
<p>421
00:51:35.590 --&gt; 00:51:40.680
Oliver Davies (opdavies): So yeah, talk, talk at the top, and then speaker underneath, so we can see how those two</p>
<p>422
00:51:40.860 --&gt; 00:51:43.359
Oliver Davies (opdavies): others too much up, and I'll just work in the middle.</p>
<p>423
00:51:43.360 --&gt; 00:51:44.060
Gabor Szabo: Okay.</p>
<p>424
00:51:44.630 --&gt; 00:51:49.190
Gabor Szabo: So the talk have, the, the list of the speakers, yeah.</p>
<p>425
00:51:49.600 --&gt; 00:51:52.059
Oliver Davies (opdavies): Yep. Yeah, exactly. So…</p>
<p>426
00:51:52.430 --&gt; 00:52:00.750
Oliver Davies (opdavies): We've also got a date, so let's put the date in there as well. So, after the talk title, let's do the same thing.</p>
<p>427
00:52:00.920 --&gt; 00:52:04.320
Oliver Davies (opdavies): That we did here. So we can do talk.date.</p>
<p>428
00:52:04.540 --&gt; 00:52:08.779
Gabor Szabo: So what happens if the speaker file doesn't exist?</p>
<p>429
00:52:09.750 --&gt; 00:52:12.309
Oliver Davies (opdavies): If the speaker file doesn't exist…</p>
<p>430
00:52:12.310 --&gt; 00:52:15.760
Gabor Szabo: Change the name of one of the speakers in one of the talks.</p>
<p>431
00:52:15.910 --&gt; 00:52:18.790
Gabor Szabo: What happens? Just remove the letter, whatever.</p>
<p>432
00:52:19.530 --&gt; 00:52:20.330
Oliver Davies (opdavies): Yep.</p>
<p>433
00:52:21.450 --&gt; 00:52:29.860
Oliver Davies (opdavies): Nothing right now, because we're not doing anything with that. But we will in a minute. We will,</p>
<p>434
00:52:29.860 --&gt; 00:52:31.310
Gabor Szabo: I'm really tense, Les.</p>
<p>435
00:52:34.310 --&gt; 00:52:40.250
Oliver Davies (opdavies): Cool. Okay, so it's pulled through the talks and the dates, so it's translated this date.</p>
<p>436
00:52:40.360 --&gt; 00:52:51.050
Oliver Davies (opdavies): Here, but it's pulled us through as a timestamp, which is not really what we want. So we can use data filter again, and say JSFY…</p>
<p>437
00:52:52.450 --&gt; 00:52:58.749
Oliver Davies (opdavies): To give it a format, and it displays it in a nice, date. Date format.</p>
<p>438
00:52:58.920 --&gt; 00:53:01.780
Oliver Davies (opdavies): And I want to get rid of this space.</p>
<p>439
00:53:02.310 --&gt; 00:53:10.250
Oliver Davies (opdavies): triggering my OCD a little bit, having that space after… the thing. Right, cool.</p>
<p>440
00:53:10.700 --&gt; 00:53:17.700
Oliver Davies (opdavies): So, they're in the right order now, because they're alphabetical, but given as we've got the dates here now, we really want them…</p>
<p>441
00:53:17.850 --&gt; 00:53:23.269
Oliver Davies (opdavies): sorted, so, like, the most recent ones at the top. So, we can update our…</p>
<p>442
00:53:23.380 --&gt; 00:53:27.230
Oliver Davies (opdavies): Thing here to say, date.</p>
<p>443
00:53:27.510 --&gt; 00:53:29.320
Oliver Davies (opdavies): It's currently around this date.</p>
<p>444
00:53:30.240 --&gt; 00:53:31.899
Oliver Davies (opdavies): So that's gonna sort them…</p>
<p>445
00:53:32.240 --&gt; 00:53:40.490
Oliver Davies (opdavies): Oldest first, so 2022, 2023, and then 2025 and 26 are sort of hidden.</p>
<p>446
00:53:40.600 --&gt; 00:53:48.710
Oliver Davies (opdavies): Down here somewhere. Let's zoom out, there we go. So there's two ways we could do this. We could use, a reverse…</p>
<p>447
00:53:49.140 --&gt; 00:53:50.630
Oliver Davies (opdavies): Filter.</p>
<p>448
00:53:50.920 --&gt; 00:53:55.639
Oliver Davies (opdavies): That's gonna reverse the order, so the newest ones show up at the top.</p>
<p>449
00:53:55.950 --&gt; 00:54:00.370
Oliver Davies (opdavies): Or we could just swap this condition to say, B date, A date.</p>
<p>450
00:54:00.950 --&gt; 00:54:04.630
Oliver Davies (opdavies): So it's just… Sort of in the other… the other order.</p>
<p>451
00:54:07.150 --&gt; 00:54:10.220
Oliver Davies (opdavies): Cool. Next thing.</p>
<p>452
00:54:10.800 --&gt; 00:54:15.620
Oliver Davies (opdavies): Let's do… on this side, we've got… we don't need these tabs anymore.</p>
<p>453
00:54:15.880 --&gt; 00:54:29.300
Oliver Davies (opdavies): spoke at PHP Southwest X number of times, so we can… we can do that. So, this is where the name stuff is gonna come in… into it. One thing we haven't done, actually, before we get there…</p>
<p>454
00:54:29.630 --&gt; 00:54:31.759
Oliver Davies (opdavies): He's on the homepage.</p>
<p>455
00:54:32.660 --&gt; 00:54:33.900
Oliver Davies (opdavies): We have a…</p>
<p>456
00:54:34.170 --&gt; 00:54:47.889
Oliver Davies (opdavies): by the numbers, so we've got 15 years. We've also got, talks and speakers, so let's… let's do that quickly. So, we've still got our data… data dot thing, so we can say speakers…</p>
<p>457
00:54:48.180 --&gt; 00:55:00.540
Oliver Davies (opdavies): And that will load all the speakers up, and probably crash my server. So, the little local web server. So, if we just want the count value, it's the length filter.</p>
<p>458
00:55:01.110 --&gt; 00:55:05.420
Oliver Davies (opdavies): So that'll just count the number, and then talks.</p>
<p>459
00:55:09.710 --&gt; 00:55:14.270
Oliver Davies (opdavies): So this should give us… Yeah, 10 speakers.</p>
<p>460
00:55:14.530 --&gt; 00:55:17.109
Oliver Davies (opdavies): Who've given 13 different talks.</p>
<p>461
00:55:17.320 --&gt; 00:55:21.989
Oliver Davies (opdavies): So, let's say I update this, the same if we've had another event.</p>
<p>462
00:55:22.220 --&gt; 00:55:28.300
Oliver Davies (opdavies): Added a new Markdown file, rebuild the site, and this number is going to change automatically.</p>
<p>463
00:55:28.410 --&gt; 00:55:32.699
Oliver Davies (opdavies): I don't need to update that number anywhere, which is pretty cool.</p>
<p>464
00:55:33.230 --&gt; 00:55:37.360
Oliver Davies (opdavies): Again, dynamic static sites, or static dynamic sites.</p>
<p>465
00:55:38.310 --&gt; 00:55:40.919
Oliver Davies (opdavies): So, let's…</p>
<p>466
00:55:41.250 --&gt; 00:55:52.770
Oliver Davies (opdavies): do the bit where we've got the number of times each person has spoken at an event. So, Dave has spoken 18 times. There is a list, let me find it.</p>
<p>467
00:55:52.970 --&gt; 00:55:57.480
Oliver Davies (opdavies): It's a stats list. There it is.</p>
<p>468
00:55:58.240 --&gt; 00:56:03.320
Oliver Davies (opdavies): Because he was given… The most talks. Dave's given the most, says 17 there.</p>
<p>469
00:56:03.710 --&gt; 00:56:13.320
Oliver Davies (opdavies): And then Rob and I are both on 12, which I think is pretty cool. So we know how many times each speaker is given… has given talks, so we can do that as well.</p>
<p>470
00:56:13.620 --&gt; 00:56:19.079
Oliver Davies (opdavies): So, let's take… The number of talks…</p>
<p>471
00:56:20.290 --&gt; 00:56:22.599
Oliver Davies (opdavies): Okay, because this is marked down, it's…</p>
<p>472
00:56:23.740 --&gt; 00:56:27.059
Oliver Davies (opdavies): Formatted it for me, very helpfully.</p>
<p>473
00:56:28.490 --&gt; 00:56:31.139
Oliver Davies (opdavies): Let's put it… Yeah, why not?</p>
<p>474
00:56:31.460 --&gt; 00:56:35.440
Oliver Davies (opdavies): Inside the list item, And… After the name.</p>
<p>475
00:56:36.440 --&gt; 00:56:40.460
Oliver Davies (opdavies): So we can see we've got 13 that's had a break.</p>
<p>476
00:56:40.790 --&gt; 00:56:42.580
Oliver Davies (opdavies): Let's give it a bit of space.</p>
<p>477
00:56:43.280 --&gt; 00:56:50.900
Oliver Davies (opdavies): Okay, so we know we've got 13 talks altogether, and everybody's individual</p>
<p>478
00:56:51.030 --&gt; 00:56:58.559
Oliver Davies (opdavies): count is 30, right? So that's the same, because all we're doing is just saying, what's the length?</p>
<p>479
00:57:00.200 --&gt; 00:57:06.519
Oliver Davies (opdavies): Because it's a marked-out file, you can see sometimes it's a bit funny about spacing, which is why it's gone green, so I'll put that back.</p>
<p>480
00:57:07.520 --&gt; 00:57:09.409
Oliver Davies (opdavies): If I made it a twig file, it wouldn't matter.</p>
<p>481
00:57:10.170 --&gt; 00:57:16.699
Oliver Davies (opdavies): But what we want to do now is filter out these numbers so that they only show that person's.</p>
<p>482
00:57:16.860 --&gt; 00:57:18.150
Oliver Davies (opdavies): count.</p>
<p>483
00:57:18.340 --&gt; 00:57:26.240
Oliver Davies (opdavies): So… we're going to link, the name, so Kieran here to Kieran there.</p>
<p>484
00:57:26.350 --&gt; 00:57:32.910
Oliver Davies (opdavies): Which I'm just checking, we've put it… we've put it back, so… We want to keep the length, but let's do a filter.</p>
<p>485
00:57:34.880 --&gt; 00:57:37.669
Oliver Davies (opdavies): So the torque gets passed in.</p>
<p>486
00:57:37.780 --&gt; 00:57:41.720
Oliver Davies (opdavies): To the, the filter, and we want to take the torque.</p>
<p>487
00:57:41.820 --&gt; 00:57:46.389
Oliver Davies (opdavies): Dot speakers… Dot 0 equals…</p>
<p>488
00:57:47.010 --&gt; 00:57:49.239
Oliver Davies (opdavies): Speak a name. Speak a title.</p>
<p>489
00:57:50.250 --&gt; 00:57:51.059
Oliver Davies (opdavies): I think.</p>
<p>490
00:57:53.810 --&gt; 00:58:04.770
Oliver Davies (opdavies): Cool. So, human's given one talk, Dan's given two talks, Dave's given none in this example, Derek's given one, James has given things, so…</p>
<p>491
00:58:05.170 --&gt; 00:58:08.379
Oliver Davies (opdavies): Let's, that is working.</p>
<p>492
00:58:08.950 --&gt; 00:58:13.039
Oliver Davies (opdavies): And… let's save that to a variable.</p>
<p>493
00:58:14.340 --&gt; 00:58:15.750
Oliver Davies (opdavies): called Torquent.</p>
<p>494
00:58:16.610 --&gt; 00:58:25.860
Oliver Davies (opdavies): So we'll just change the syntax from, say something to do something, and again, we'll just put in here, talk count.</p>
<p>495
00:58:26.490 --&gt; 00:58:27.630
Oliver Davies (opdavies): Talks.</p>
<p>496
00:58:27.960 --&gt; 00:58:29.360
Oliver Davies (opdavies): I'm gonna put that in a…</p>
<p>497
00:58:32.730 --&gt; 00:58:33.990
Oliver Davies (opdavies): In the brackets.</p>
<p>498
00:58:34.270 --&gt; 00:58:50.970
Oliver Davies (opdavies): So we can see now, it's got one talk, 2 talks, 0 talks, 1 talk, etc. Probably not that great, you know, technically, with this one, we just want to have it, say, 1, so we can do torque count equals equals 1,</p>
<p>499
00:58:51.190 --&gt; 00:58:56.830
Oliver Davies (opdavies): And we could do a ternary here to say if it's 1, it's torques, and if it's not 1, it's…</p>
<p>500
00:58:57.570 --&gt; 00:58:59.290
Oliver Davies (opdavies): Well, all the way around, doesn't it?</p>
<p>501
00:59:01.990 --&gt; 00:59:05.190
Oliver Davies (opdavies): One… yeah, one… that's the other… the other way around.</p>
<p>502
00:59:05.880 --&gt; 00:59:08.580
Oliver Davies (opdavies): Talk, singular, talk, plural.</p>
<p>503
00:59:10.170 --&gt; 00:59:11.750
Oliver Davies (opdavies): joys of live coding.</p>
<p>504
00:59:12.700 --&gt; 00:59:20.720
Oliver Davies (opdavies): So, if they're given one talk, this has one talk. If it's two talks, it's two… zero is… is zero talks.</p>
<p>505
00:59:22.740 --&gt; 00:59:29.180
Oliver Davies (opdavies): They had the thing that after a while, words just look the same. The word talk looks really weird to me right now.</p>
<p>506
00:59:31.750 --&gt; 00:59:34.130
Oliver Davies (opdavies): Okay.</p>
<p>507
00:59:34.630 --&gt; 00:59:38.400
Oliver Davies (opdavies): So, we probably don't want people with zero talks.</p>
<p>508
00:59:38.710 --&gt; 00:59:45.959
Oliver Davies (opdavies): So, what we can do is take the torque count that we did here, which is now a variable.</p>
<p>509
00:59:46.110 --&gt; 00:59:51.560
Oliver Davies (opdavies): And let's only output that if… They've got talks.</p>
<p>510
00:59:51.760 --&gt; 00:59:56.949
Oliver Davies (opdavies): So, if, toolCount is greater than 0,</p>
<p>511
00:59:57.220 --&gt; 01:00:01.730
Oliver Davies (opdavies): Then we'll wrap that around our ally, and let's just copy-paste this.</p>
<p>512
01:00:02.200 --&gt; 01:00:04.600
Oliver Davies (opdavies): Because why not? Save a bit of typing?</p>
<p>513
01:00:08.740 --&gt; 01:00:10.569
Oliver Davies (opdavies): Sort my indentation out.</p>
<p>514
01:00:12.040 --&gt; 01:00:15.990
Oliver Davies (opdavies): So hopefully now, these ones with zero torques are going to disappear.</p>
<p>515
01:00:18.300 --&gt; 01:00:20.520
Oliver Davies (opdavies): Assuming I've typed everything properly.</p>
<p>516
01:00:21.420 --&gt; 01:00:27.970
Oliver Davies (opdavies): There we go. That's not good. See, big red error. Key must be the name of the thing, if…</p>
<p>517
01:00:32.590 --&gt; 01:00:38.520
Oliver Davies (opdavies): I've not got the holistic. That's fun. There we are.</p>
<p>518
01:00:39.990 --&gt; 01:00:43.940
Oliver Davies (opdavies): Let's… There we go.</p>
<p>519
01:00:44.310 --&gt; 01:00:48.889
Oliver Davies (opdavies): There's an issue that says about it crashing as well, and it recovered nicely there.</p>
<p>520
01:00:49.240 --&gt; 01:00:50.149
Oliver Davies (opdavies): Good job.</p>
<p>521
01:00:50.760 --&gt; 01:00:59.479
Oliver Davies (opdavies): Cool. Okay. So everything now, the… anybody with the zero talks is, is now not, not shown, in here at all.</p>
<p>522
01:00:59.910 --&gt; 01:01:05.689
Oliver Davies (opdavies): So, let's do the thing Gabor said about earlier on, and let's rename this one.</p>
<p>523
01:01:05.910 --&gt; 01:01:11.519
Oliver Davies (opdavies): So, I'd expect… This one's a change now, so Kieran's… Kieran is gone.</p>
<p>524
01:01:12.470 --&gt; 01:01:21.100
Oliver Davies (opdavies): Because he doesn't match any talks, it's now not making that link, because we've based it all on the name matching the speakers.</p>
<p>525
01:01:23.590 --&gt; 01:01:26.070
Oliver Davies (opdavies): There's book here and back, though.</p>
<p>526
01:01:29.950 --&gt; 01:01:41.940
Oliver Davies (opdavies): So, it's pretty cool. And again, let me just, go back to this quick… this point quickly. If you go into output dev, all we've got is the HTML. So we can ignore that, because…</p>
<p>527
01:01:42.170 --&gt; 01:01:46.109
Oliver Davies (opdavies): too old. I'll delete that, because that's…</p>
<p>528
01:01:46.500 --&gt; 01:01:54.510
Oliver Davies (opdavies): our favourite word, contaminated, just because of the stuff I was doing earlier on. There is an option to do clean.</p>
<p>529
01:01:54.960 --&gt; 01:02:01.539
Oliver Davies (opdavies): So just clean out the directory before it builds, to make sure that any old stuff is gone, and just reboot.</p>
<p>530
01:02:02.530 --&gt; 01:02:12.020
Oliver Davies (opdavies): And let's just go back in here again. Right, this is what we've got. So, index of HTML, there's all of our HTML code.</p>
<p>531
01:02:12.480 --&gt; 01:02:14.039
Oliver Davies (opdavies): There's all my talks.</p>
<p>532
01:02:14.430 --&gt; 01:02:16.040
Oliver Davies (opdavies): With the titles in.</p>
<p>533
01:02:16.260 --&gt; 01:02:18.510
Oliver Davies (opdavies): And then, there's all of our speakers, so…</p>
<p>534
01:02:18.730 --&gt; 01:02:22.980
Oliver Davies (opdavies): and deploy this to GitHub pages, or anywhere, it will… it will just work.</p>
<p>535
01:02:23.140 --&gt; 01:02:25.110
Oliver Davies (opdavies): Without the need for anything else.</p>
<p>536
01:02:26.780 --&gt; 01:02:32.589
Oliver Davies (opdavies): And then… finally, I think? Like, we can click on all these, and we can…</p>
<p>537
01:02:32.740 --&gt; 01:02:46.410
Oliver Davies (opdavies): click through and see the names of the people, or the talk. There's no… nothing on there. So, let's… let's build those out a bit. We can do some template inheritance, so…</p>
<p>538
01:02:46.590 --&gt; 01:02:49.729
Oliver Davies (opdavies): Let's see, which one should we do first?</p>
<p>539
01:02:50.270 --&gt; 01:02:51.880
Oliver Davies (opdavies): Let's do this, this.</p>
<p>540
01:02:52.150 --&gt; 01:03:00.369
Oliver Davies (opdavies): titles first. So, views. So, default is our standard, or the default template.</p>
<p>541
01:03:00.790 --&gt; 01:03:09.950
Oliver Davies (opdavies): Could be called anything. So there's nothing in here right now that's outputting that page title anywhere, so that's why it's not showing.</p>
<p>542
01:03:10.130 --&gt; 01:03:14.150
Oliver Davies (opdavies): So… This one also extends default.</p>
<p>543
01:03:14.450 --&gt; 01:03:19.300
Oliver Davies (opdavies): So, we're gonna be editing a speaker, so we're gonna edit the speaker.</p>
<p>544
01:03:19.430 --&gt; 01:03:20.630
Oliver Davies (opdavies): Template funnel.</p>
<p>545
01:03:20.800 --&gt; 01:03:24.419
Oliver Davies (opdavies): And now we want to override, the content.</p>
<p>546
01:03:24.840 --&gt; 01:03:25.640
Oliver Davies (opdavies): block.</p>
<p>547
01:03:25.760 --&gt; 01:03:27.419
Oliver Davies (opdavies): I believe we can do this now.</p>
<p>548
01:03:27.920 --&gt; 01:03:32.919
Oliver Davies (opdavies): As well. So… Let's see…</p>
<p>549
01:03:37.110 --&gt; 01:03:38.330
Oliver Davies (opdavies): We can't.</p>
<p>550
01:03:41.390 --&gt; 01:03:51.089
Oliver Davies (opdavies): Speaker… Okay, I was hoping that was gonna… Let's go again. Yes.</p>
<p>551
01:03:54.590 --&gt; 01:03:58.809
Oliver Davies (opdavies): Let's see… maybe we can't do that. Let's take that away.</p>
<p>552
01:04:03.810 --&gt; 01:04:07.869
Oliver Davies (opdavies): Content? Maybe you'll… what else do we have?</p>
<p>553
01:04:08.550 --&gt; 01:04:11.010
Oliver Davies (opdavies): Contact wrapper, maybe we need to edit contact wrapper.</p>
<p>554
01:04:13.520 --&gt; 01:04:14.710
Oliver Davies (opdavies): There we go, okay.</p>
<p>555
01:04:15.410 --&gt; 01:04:19.630
Oliver Davies (opdavies): And then inside Content Wrapper, we also want the parent. We also want the,</p>
<p>556
01:04:21.220 --&gt; 01:04:23.190
Oliver Davies (opdavies): The content from inside it.</p>
<p>557
01:04:24.430 --&gt; 01:04:26.859
Oliver Davies (opdavies): Right, so now have you got both. Awesome. Okay.</p>
<p>558
01:04:28.210 --&gt; 01:04:34.460
Oliver Davies (opdavies): So, let's say we wanted to put the person's name in there, so we have a H1 tag.</p>
<p>559
01:04:34.790 --&gt; 01:04:40.179
Oliver Davies (opdavies): do our double curly brackets, page, title… And… that was our H1.</p>
<p>560
01:04:42.040 --&gt; 01:04:45.860
Oliver Davies (opdavies): And… there's our name of our person.</p>
<p>561
01:04:47.160 --&gt; 01:04:52.920
Oliver Davies (opdavies): We've already got this, this comes from the content, block that we just… or the period that we just saw.</p>
<p>562
01:04:53.110 --&gt; 01:04:54.659
Oliver Davies (opdavies): Totally tidy wall.</p>
<p>563
01:04:55.270 --&gt; 01:05:04.210
Oliver Davies (opdavies): And… What we can then do, maybe, is have, if page.links.</p>
<p>564
01:05:05.080 --&gt; 01:05:07.619
Oliver Davies (opdavies): Just build up a list of links for each person.</p>
<p>565
01:05:07.950 --&gt; 01:05:09.659
Oliver Davies (opdavies): We'll make that a list again.</p>
<p>566
01:05:12.590 --&gt; 01:05:14.949
Oliver Davies (opdavies): Of, of an ally.</p>
<p>567
01:05:18.720 --&gt; 01:05:24.039
Oliver Davies (opdavies): So if we have links, then we're gonna show a heading, which I think's elsewhere.</p>
<p>568
01:05:27.520 --&gt; 01:05:35.309
Oliver Davies (opdavies): There's a list, there's a URL, so, inside this, you'll see if, full link in page.links.</p>
<p>569
01:05:35.920 --&gt; 01:05:37.809
Oliver Davies (opdavies): Then, N4.</p>
<p>570
01:05:38.850 --&gt; 01:05:46.300
Oliver Davies (opdavies): more talk on Twig than anything else, really. And then in here, we want to put… the link.</p>
<p>571
01:05:48.580 --&gt; 01:05:51.919
Oliver Davies (opdavies): So I don't know whether Kieran had any links. Let's find one.</p>
<p>572
01:05:52.150 --&gt; 01:05:54.600
Oliver Davies (opdavies): Yep, so Dan's got a couple…</p>
<p>573
01:05:54.930 --&gt; 01:06:01.820
Oliver Davies (opdavies): And then, if you want to make that a tag, an actual link, Ahref it, output the link.</p>
<p>574
01:06:01.950 --&gt; 01:06:02.910
Oliver Davies (opdavies): Babe.</p>
<p>575
01:06:03.020 --&gt; 01:06:05.460
Oliver Davies (opdavies): Close that, do that there.</p>
<p>576
01:06:06.280 --&gt; 01:06:10.670
Oliver Davies (opdavies): Close this, go there… And… close our time.</p>
<p>577
01:06:14.620 --&gt; 01:06:16.780
Oliver Davies (opdavies): Okay, so now these are…</p>
<p>578
01:06:16.890 --&gt; 01:06:33.400
Oliver Davies (opdavies): proper links to each… to each thing. So, Kieran doesn't have them, because he doesn't have any links on his… on his page, right? There's no links section, in here, sorry. But if he does have them, or if the speaker has them, then…</p>
<p>579
01:06:33.740 --&gt; 01:06:36.079
Oliver Davies (opdavies): Then that'll show up there.</p>
<p>580
01:06:36.300 --&gt; 01:06:43.950
Oliver Davies (opdavies): And then, let's also just show… Let's bring in the…</p>
<p>581
01:06:44.180 --&gt; 01:06:47.330
Oliver Davies (opdavies): list of talks that they've given.</p>
<p>582
01:06:48.800 --&gt; 01:06:50.189
Oliver Davies (opdavies): So it's got caught.</p>
<p>583
01:06:53.230 --&gt; 01:06:54.640
Oliver Davies (opdavies): Soap.</p>
<p>584
01:06:55.470 --&gt; 01:06:59.540
Oliver Davies (opdavies): We can use the same logic, probably, that we did earlier on. So let's go back here…</p>
<p>585
01:07:00.030 --&gt; 01:07:08.060
Oliver Davies (opdavies): And… we want to find… This same sort of logic, really.</p>
<p>586
01:07:10.850 --&gt; 01:07:18.270
Oliver Davies (opdavies): As that talks… Bring all the talks, filter them so that, again, it matches this person.</p>
<p>587
01:07:18.410 --&gt; 01:07:25.710
Oliver Davies (opdavies): And then we've been… For each… no, not for each, that's PHP, for talk in talks.</p>
<p>588
01:07:26.300 --&gt; 01:07:29.860
Oliver Davies (opdavies): Yeah, same as what we did on the other… on the other page, basically.</p>
<p>589
01:07:30.300 --&gt; 01:07:36.210
Oliver Davies (opdavies): And 4… I should just copy it from the other one, from the other page.</p>
<p>590
01:07:43.230 --&gt; 01:07:44.260
Oliver Davies (opdavies): That's what we want.</p>
<p>591
01:07:46.400 --&gt; 01:07:47.789
Oliver Davies (opdavies): I've lost my place.</p>
<p>592
01:07:48.480 --&gt; 01:07:51.170
Oliver Davies (opdavies): Views.</p>
<p>593
01:07:52.420 --&gt; 01:07:56.450
Oliver Davies (opdavies): So for Itch Talking Talks… We want to output that to list.</p>
<p>594
01:07:57.030 --&gt; 01:07:58.660
Oliver Davies (opdavies): You want to go do the same thing.</p>
<p>595
01:07:59.450 --&gt; 01:08:00.260
Oliver Davies (opdavies): Cheers.</p>
<p>596
01:08:02.890 --&gt; 01:08:09.690
Oliver Davies (opdavies): So… Again, we had this earlier on, that we need to bring the talks themselves into scope.</p>
<p>597
01:08:10.010 --&gt; 01:08:14.499
Oliver Davies (opdavies): So you can see use again, talks.</p>
<p>598
01:08:16.840 --&gt; 01:08:19.559
Oliver Davies (opdavies): That brings them in, hopefully.</p>
<p>599
01:08:21.250 --&gt; 01:08:30.470
Oliver Davies (opdavies): Mmm… Tool, title, tool, date… speakers, just looking at what's not matching.</p>
<p>600
01:08:30.740 --&gt; 01:08:35.310
Oliver Davies (opdavies): That's page, because we're on the page type, not somewhere else.</p>
<p>601
01:08:37.200 --&gt; 01:08:44.089
Oliver Davies (opdavies): We are in uncharted territory, I haven't rehearsed a spit, so we'll see where we are.</p>
<p>602
01:08:44.210 --&gt; 01:08:46.900
Oliver Davies (opdavies): Filter, filter, expect a sequence map.</p>
<p>603
01:08:47.229 --&gt; 01:08:59.750
Oliver Davies (opdavies): Data talks… Did bring my end. I'll start. I'm on the wrong… The wrong one.</p>
<p>604
01:09:00.979 --&gt; 01:09:01.770
Oliver Davies (opdavies): I think.</p>
<p>605
01:09:02.520 --&gt; 01:09:04.319
Oliver Davies (opdavies): Tearing the user talks.</p>
<p>606
01:09:07.529 --&gt; 01:09:11.390
Oliver Davies (opdavies): But Kian… does Kian have talks? Yeah, he's got one. Where's Keenan's talk?</p>
<p>607
01:09:12.040 --&gt; 01:09:18.959
Oliver Davies (opdavies): Kieran McNulty, blah blah blah, data doctor. So we can do, let's see…</p>
<p>608
01:09:20.510 --&gt; 01:09:22.220
Oliver Davies (opdavies): There is a lot here to dump.</p>
<p>609
01:09:22.470 --&gt; 01:09:24.910
Oliver Davies (opdavies): So, like, that's the var dump function.</p>
<p>610
01:09:25.100 --&gt; 01:09:30.250
Oliver Davies (opdavies): And then doodata here, dot talks, let's just see if we're getting any.</p>
<p>611
01:09:30.660 --&gt; 01:09:35.259
Oliver Davies (opdavies): Coming in at all, let's debug where this problem is…</p>
<p>612
01:09:40.240 --&gt; 01:09:41.620
Oliver Davies (opdavies): It's not doing anything.</p>
<p>613
01:09:43.220 --&gt; 01:09:46.900
Oliver Davies (opdavies): To fill the expected sequence map or null.</p>
<p>614
01:09:49.729 --&gt; 01:09:50.830
Oliver Davies (opdavies): blah, blah, blah.</p>
<p>615
01:09:53.569 --&gt; 01:09:55.329
Oliver Davies (opdavies): Let's try a different person.</p>
<p>616
01:09:57.250 --&gt; 01:10:01.539
Oliver Davies (opdavies): See, like I said, uncharted territory, I should have stopped to all your head.</p>
<p>617
01:10:04.170 --&gt; 01:10:04.940
Oliver Davies (opdavies): Let's…</p>
<p>618
01:10:05.620 --&gt; 01:10:07.770
Gabor Szabo: The event doesn't have a speaker?</p>
<p>619
01:10:10.090 --&gt; 01:10:14.410
Oliver Davies (opdavies): So this is the speaker type, so it should be… there should be…</p>
<p>620
01:10:14.960 --&gt; 01:10:17.210
Oliver Davies (opdavies): I was expecting this one to show up here.</p>
<p>621
01:10:17.910 --&gt; 01:10:19.200
Oliver Davies (opdavies): News Talks…</p>
<p>622
01:10:21.320 --&gt; 01:10:25.589
Oliver Davies (opdavies): Let's get rid of this, because that's the bit that was… that's the bit that it's not happy with. Let's…</p>
<p>623
01:10:29.360 --&gt; 01:10:33.429
Oliver Davies (opdavies): So this, yeah, it's 13, so it's obviously getting the talks through.</p>
<p>624
01:10:33.870 --&gt; 01:10:39.359
Oliver Davies (opdavies): Data.talks, filter, talk… The speakers…</p>
<p>625
01:10:44.360 --&gt; 01:10:44.900
Gabor Szabo: See what we can.</p>
<p>626
01:10:45.310 --&gt; 01:10:47.950
Gabor Szabo: For every, every person?</p>
<p>627
01:10:49.440 --&gt; 01:10:52.620
Gabor Szabo: For every presentation, do we have a speaker?</p>
<p>628
01:10:53.050 --&gt; 01:10:57.990
Oliver Davies (opdavies): We should do, because we were using that earlier on, because that's what we're using on the front page to count it.</p>
<p>629
01:10:59.250 --&gt; 01:11:03.689
Oliver Davies (opdavies): Let's just now, let's not… let's… let's go back to basics.</p>
<p>630
01:11:04.030 --&gt; 01:11:08.829
Oliver Davies (opdavies): And… let's just… Do all the talks. Let's just check that works.</p>
<p>631
01:11:09.990 --&gt; 01:11:11.139
Oliver Davies (opdavies): So that works.</p>
<p>632
01:11:12.700 --&gt; 01:11:13.620
Oliver Davies (opdavies): Okay.</p>
<p>633
01:11:15.080 --&gt; 01:11:16.780
Oliver Davies (opdavies): Let's debug this.</p>
<p>634
01:11:16.980 --&gt; 01:11:17.850
Oliver Davies (opdavies): Page.</p>
<p>635
01:11:18.010 --&gt; 01:11:21.530
Oliver Davies (opdavies): Title. Something probably just isn't named properly.</p>
<p>636
01:11:22.260 --&gt; 01:11:25.809
Oliver Davies (opdavies): Kieran, and then it's also dumped out.</p>
<p>637
01:11:26.790 --&gt; 01:11:36.689
Oliver Davies (opdavies): Page… Blah, blah, blah, blah, set, date, talk, let's dot this out here, page, talk.</p>
<p>638
01:11:39.010 --&gt; 01:11:41.310
Oliver Davies (opdavies): tool.speakers.1.</p>
<p>639
01:11:46.860 --&gt; 01:11:51.950
Oliver Davies (opdavies): Okay, so we're getting the names through, so that is fine.</p>
<p>640
01:11:52.390 --&gt; 01:11:55.540
Oliver Davies (opdavies): Let's try again. Filter… Baby.</p>
<p>641
01:12:00.890 --&gt; 01:12:04.929
Oliver Davies (opdavies): These are my… nope, that's the other thing we drink.</p>
<p>642
01:12:05.390 --&gt; 01:12:06.260
Oliver Davies (opdavies): Talk.</p>
<p>643
01:12:06.600 --&gt; 01:12:08.940
Oliver Davies (opdavies): Talk.speakers.</p>
<p>644
01:12:09.230 --&gt; 01:12:14.710
Oliver Davies (opdavies): Dot zero equals equals… Pictures, please.</p>
<p>645
01:12:21.090 --&gt; 01:12:23.729
Oliver Davies (opdavies): Yeah, it doesn't like that. What is going on with this?</p>
<p>646
01:12:25.250 --&gt; 01:12:27.250
Oliver Davies (opdavies): God, no. Why would it be no?</p>
<p>647
01:12:29.610 --&gt; 01:12:34.490
Oliver Davies (opdavies): Talking talks, we know it's not normal.</p>
<p>648
01:12:35.200 --&gt; 01:12:36.849
Oliver Davies (opdavies): Because I can't do it.</p>
<p>649
01:12:39.380 --&gt; 01:12:42.259
Oliver Davies (opdavies): Maybe I found a bug.</p>
<p>650
01:12:43.300 --&gt; 01:12:44.590
Oliver Davies (opdavies): Let's give it one more go.</p>
<p>651
01:12:47.110 --&gt; 01:12:50.860
Oliver Davies (opdavies): Filter expects a sequence mapping, or traversable.null.</p>
<p>652
01:12:52.840 --&gt; 01:12:53.920
Oliver Davies (opdavies): Filter.</p>
<p>653
01:12:54.420 --&gt; 01:12:55.420
Oliver Davies (opdavies): Tool.</p>
<p>654
01:13:00.840 --&gt; 01:13:02.140
Oliver Davies (opdavies): Yeah, the tool.</p>
<p>655
01:13:04.430 --&gt; 01:13:08.919
Oliver Davies (opdavies): Yeah, it's definitely not null, because we know they're not null, because this line tells us it's not null.</p>
<p>656
01:13:11.610 --&gt; 01:13:13.370
Oliver Davies (opdavies): There we go, okay.</p>
<p>657
01:13:13.940 --&gt; 01:13:17.149
Oliver Davies (opdavies): That's what I'd… it works on the other page!</p>
<p>658
01:13:17.280 --&gt; 01:13:26.260
Oliver Davies (opdavies): Page title… Hmm. Okay. Let's not get too caught up, but we'll come back to it.</p>
<p>659
01:13:27.560 --&gt; 01:13:33.849
Oliver Davies (opdavies): Imagine we could filter this down by the people, like we did on the other page, but for some reason isn't working on this page.</p>
<p>660
01:13:34.190 --&gt; 01:13:35.140
Oliver Davies (opdavies): So…</p>
<p>661
01:13:35.290 --&gt; 01:13:42.629
Oliver Davies (opdavies): We could link here and click on a person's page, see all their talks, and then click through and see them all.</p>
<p>662
01:13:42.940 --&gt; 01:13:47.360
Oliver Davies (opdavies): And then the other side of that is changing the…</p>
<p>663
01:13:50.660 --&gt; 01:13:53.190
Oliver Davies (opdavies): Talk content up. So, tap bait.</p>
<p>664
01:13:53.390 --&gt; 01:13:54.479
Oliver Davies (opdavies): So let's end.</p>
<p>665
01:13:54.690 --&gt; 01:13:55.640
Oliver Davies (opdavies): that block.</p>
<p>666
01:13:56.040 --&gt; 01:14:00.039
Oliver Davies (opdavies): And then we can do the same thing, and say page title.</p>
<p>667
01:14:00.300 --&gt; 01:14:03.960
Oliver Davies (opdavies): So there's our page title. Let's wrap that in a H1.</p>
<p>668
01:14:04.600 --&gt; 01:14:08.579
Oliver Davies (opdavies): And let's close that off with the other H1.</p>
<p>669
01:14:09.710 --&gt; 01:14:19.620
Oliver Davies (opdavies): And… Let's do parent… So it shows the contents of the other one.</p>
<p>670
01:14:20.340 --&gt; 01:14:23.999
Oliver Davies (opdavies): Nothing in that, I don't think, so…</p>
<p>671
01:14:28.520 --&gt; 01:14:33.620
Oliver Davies (opdavies): I'm gonna play as one of mine, so I should… Let's grab this quickly.</p>
<p>672
01:14:35.150 --&gt; 01:14:37.840
Oliver Davies (opdavies): Blah blah blah… grab.</p>
<p>673
01:14:39.110 --&gt; 01:14:39.870
Oliver Davies (opdavies): Paste.</p>
<p>674
01:14:42.880 --&gt; 01:14:44.519
Oliver Davies (opdavies): There you go. So…</p>
<p>675
01:14:44.770 --&gt; 01:14:51.969
Oliver Davies (opdavies): And then, let's say you want to do the opposite, but we could do speakers.</p>
<p>676
01:14:52.770 --&gt; 01:14:55.430
Oliver Davies (opdavies): Let's make that, another H2.</p>
<p>677
01:14:56.370 --&gt; 01:15:01.169
Oliver Davies (opdavies): And… let's… Make that a list. I should have made the snippet for this.</p>
<p>678
01:15:01.510 --&gt; 01:15:07.259
Oliver Davies (opdavies): And then say… 4 speaker.</p>
<p>679
01:15:07.800 --&gt; 01:15:09.380
Oliver Davies (opdavies): In Page.</p>
<p>680
01:15:09.530 --&gt; 01:15:15.070
Oliver Davies (opdavies): Because… It's hand not floated.</p>
<p>681
01:15:21.470 --&gt; 01:15:22.820
Oliver Davies (opdavies): People are taller.</p>
<p>682
01:15:25.520 --&gt; 01:15:26.920
Oliver Davies (opdavies): Interesting.</p>
<p>683
01:15:28.220 --&gt; 01:15:29.909
Oliver Davies (opdavies): Oh, because it's just me.</p>
<p>684
01:15:33.830 --&gt; 01:15:40.630
Oliver Davies (opdavies): quite a lot of the H1 anymore. H1, H1, H2, let's close our H2 there.</p>
<p>685
01:15:42.990 --&gt; 01:15:46.480
Oliver Davies (opdavies): Cool, and then let's link that to the other page.</p>
<p>686
01:15:51.680 --&gt; 01:15:59.890
Oliver Davies (opdavies): Yeah, we're gonna have to do more logic there to load up the speakers and filter them by name and everything else. We can see where we are, but…</p>
<p>687
01:16:00.090 --&gt; 01:16:04.340
Oliver Davies (opdavies): Yeah, imagine if we were to do that, we could click here, go back to the page.</p>
<p>688
01:16:04.850 --&gt; 01:16:09.890
Oliver Davies (opdavies): And go back to see here, and click to the page, so… Yeah, that's…</p>
<p>689
01:16:10.500 --&gt; 01:16:12.540
Oliver Davies (opdavies): That's what I was planning on demoing.</p>
<p>690
01:16:12.840 --&gt; 01:16:15.330
Oliver Davies (opdavies): And… yeah, you can see how…</p>
<p>691
01:16:15.760 --&gt; 01:16:32.349
Oliver Davies (opdavies): We've made a fairly dynamic site with a lot of interesting information, like the number of speakers and talks, a list of the speakers, how many talks each one has given, and when each talk was, etc. We can see the speakers for each talk.</p>
<p>692
01:16:32.470 --&gt; 01:16:35.600
Oliver Davies (opdavies): And we can see the talks that each person has given.</p>
<p>693
01:16:35.860 --&gt; 01:16:41.619
Oliver Davies (opdavies): Which is how it's not loading. It's weird. I'm gonna look at that in a minute.</p>
<p>694
01:16:41.800 --&gt; 01:16:53.300
Oliver Davies (opdavies): Yeah, and again, this is all driven by these markdown files and these twig templates that Skullpin is then processing, and then outputting the HTML for, and…</p>
<p>695
01:16:53.610 --&gt; 01:16:59.029
Oliver Davies (opdavies): We could take this HTML, and then deploy it anywhere, or the HTML.</p>
<p>696
01:16:59.410 --&gt; 01:17:01.740
Oliver Davies (opdavies): That's HTML. The whole thing.</p>
<p>697
01:17:01.940 --&gt; 01:17:08.659
Gabor Szabo: Yeah, it's pretty impressive. There is one bug at, it's not called Maven PHP, it's called PHP Maven.</p>
<p>698
01:17:08.660 --&gt; 01:17:10.810
Oliver Davies (opdavies): Oh, sorry, you should have told me at the beginning.</p>
<p>699
01:17:10.810 --&gt; 01:17:11.290
Gabor Szabo: Yeah, yeah.</p>
<p>700
01:17:12.070 --&gt; 01:17:14.349
Gabor Szabo: I was wondering what I should say yours.</p>
<p>701
01:17:14.350 --&gt; 01:17:15.350
Oliver Davies (opdavies): Oh, well, it's neat.</p>
<p>702
01:17:15.350 --&gt; 01:17:20.590
Gabor Szabo: Like, after this time, I started looking, and I really, really have to say that</p>
<p>703
01:17:20.590 --&gt; 01:17:23.869
Oliver Davies (opdavies): Yeah. So he… On the back.</p>
<p>704
01:17:23.870 --&gt; 01:17:26.839
Gabor Szabo: like PHP expert, just PHP Media, right?</p>
<p>705
01:17:27.520 --&gt; 01:17:30.130
Oliver Davies (opdavies): I could say I did this on purpose, right?</p>
<p>706
01:17:30.760 --&gt; 01:17:35.090
Oliver Davies (opdavies): This is the thing, right, with the static sites. If I want to change it now.</p>
<p>707
01:17:35.320 --&gt; 01:17:40.480
Oliver Davies (opdavies): on every page, I can change it in one place, and it will update it on every page.</p>
<p>708
01:17:40.670 --&gt; 01:17:52.010
Oliver Davies (opdavies): So I can just go into the site generator, and change this here, and say PHP Maven Type.</p>
<p>709
01:17:52.650 --&gt; 01:17:56.990
Oliver Davies (opdavies): Now, there's… Is going to need a restart, because it caches.</p>
<p>710
01:17:57.350 --&gt; 01:17:59.270
Oliver Davies (opdavies): The settings for all.</p>
<p>711
01:18:00.090 --&gt; 01:18:03.569
Oliver Davies (opdavies): Let's just start that again. Let's do no interaction.</p>
<p>712
01:18:07.870 --&gt; 01:18:08.940
Oliver Davies (opdavies): Alright, fine.</p>
<p>713
01:18:10.420 --&gt; 01:18:21.620
Oliver Davies (opdavies): So now it's changed here, on this heading, PHP Maven, it's changed there to PHP Maven, it's changed this one, it's changed everywhere, to PHP Maven.</p>
<p>714
01:18:21.620 --&gt; 01:18:22.680
Gabor Szabo: Yeah, of course.</p>
<p>715
01:18:22.680 --&gt; 01:18:26.550
Oliver Davies (opdavies): Which is cool, and then if I refresh this as well, so…</p>
<p>716
01:18:26.780 --&gt; 01:18:36.930
Oliver Davies (opdavies): Yeah, if I, you know, for example, this is one of the big benefits, is let's say, on my site, and I change one of these links down here.</p>
<p>717
01:18:37.130 --&gt; 01:18:38.740
Oliver Davies (opdavies): I change it in one place.</p>
<p>718
01:18:38.850 --&gt; 01:18:45.140
Oliver Davies (opdavies): And then when I regenerate the site, it will regenerate it for every page.</p>
<p>719
01:18:45.140 --&gt; 01:18:57.360
Gabor Szabo: I have implemented… I maintain a website for a local Python community, one for the local Rust community, and each one, I wrote the whole thing in Python and Rust. It's very impressive.</p>
<p>720
01:18:57.360 --&gt; 01:18:57.750
Oliver Davies (opdavies): Is that true?</p>
<p>721
01:18:57.750 --&gt; 01:19:00.350
Gabor Szabo: I'm using only templating system for that.</p>
<p>722
01:19:01.800 --&gt; 01:19:18.130
Oliver Davies (opdavies): And this is why my… this is why my site takes 30 seconds to build, because the number of content, the amount of posts, but also I'm using it in a few different ways. So, I've got latest posts here, I've got upcoming presentations, I've got featured presentations, so…</p>
<p>723
01:19:18.310 --&gt; 01:19:19.210
Oliver Davies (opdavies): Show you.</p>
<p>724
01:19:19.210 --&gt; 01:19:19.720
Gabor Szabo: Lisa.</p>
<p>725
01:19:19.720 --&gt; 01:19:27.999
Oliver Davies (opdavies): So, on my site here, I've got, sites… My sight, souls.</p>
<p>726
01:19:28.400 --&gt; 01:19:34.739
Oliver Davies (opdavies): So, I have a presentation's content type, and we can see in here, scoping…</p>
<p>727
01:19:35.290 --&gt; 01:19:46.589
Oliver Davies (opdavies): It's gonna get very meta. Yeah, this one is featured, so I'm just filtering that based on only showing me presentations that are featured, and then each…</p>
<p>728
01:19:46.680 --&gt; 01:20:01.260
Oliver Davies (opdavies): each presentation has, events, and each event has got a date, and yeah, so instead of having all this in a database, the YAML file, or the Markdown files, are my database, essentially.</p>
<p>729
01:20:03.020 --&gt; 01:20:03.939
Gabor Szabo: Very nice.</p>
<p>730
01:20:04.300 --&gt; 01:20:12.929
Oliver Davies (opdavies): So yeah, that's… that's it. Yeah, I could deploy this anywhere, and it would just work, which I think is pretty cool.</p>
<p>731
01:20:14.630 --&gt; 01:20:20.260
Gabor Szabo: Well, thank you. Anyone with any questions we'd like to ask now?</p>
<p>732
01:20:25.570 --&gt; 01:20:35.629
Gabor Szabo: Can you, actually, if you, if you don't, if you, what I, I think, I think I started to ask, I'm not sure if the answer was there and just missed it, if you,</p>
<p>733
01:20:37.190 --&gt; 01:20:51.280
Gabor Szabo: So you showed what happens if the name is incorrect, or what, but it doesn't show on the website, but can we get some error message on the processing, or…</p>
<p>734
01:20:51.280 --&gt; 01:21:02.699
Gabor Szabo: some way to the… so I… so it won't just disappear from the website, which I will probably miss, but I will get some, let's say, an error message</p>
<p>735
01:21:02.720 --&gt; 01:21:04.450
Gabor Szabo: While building the website.</p>
<p>736
01:21:05.420 --&gt; 01:21:21.769
Oliver Davies (opdavies): So, because it's all fairly freeform, you can put anything in the markdown area that you want, it's not strongly typed or anything like that, it wouldn't flag it as an error on build, by default.</p>
<p>737
01:21:21.920 --&gt; 01:21:36.380
Oliver Davies (opdavies): But there are hooks and events that you can subscribe to where you can add that type of logic. On my site, for example, if I've got, like, a ZZ or a to-do, in a post, it won't… it won't build.</p>
<p>738
01:21:36.380 --&gt; 01:21:41.969
Oliver Davies (opdavies): Because I want to make sure that I'm not publishing a post accidentally, but I'm in the middle of writing.</p>
<p>739
01:21:42.130 --&gt; 01:21:49.910
Oliver Davies (opdavies): So you can extend, you know, this by having, custom bundles and…</p>
<p>740
01:21:50.060 --&gt; 01:21:53.960
Oliver Davies (opdavies): whatever else, and I can show you an example of that, if you like.</p>
<p>741
01:21:54.860 --&gt; 01:22:02.810
Oliver Davies (opdavies): Which is going to be in… Packages… I think?</p>
<p>742
01:22:03.130 --&gt; 01:22:04.100
Oliver Davies (opdavies): They go.</p>
<p>743
01:22:07.020 --&gt; 01:22:23.820
Oliver Davies (opdavies): presentation span, I'm trying to think where it is anymore. The other thing that's interesting is I've been playing with this thing called Sculpting Validator, so it's gone to look at what's in the front matter, and if I've typed something, which I do fairly often, I always do uses, that would throw an error.</p>
<p>744
01:22:23.920 --&gt; 01:22:28.300
Oliver Davies (opdavies): But it's, that's a separate, sort of, symphony validator type of thing.</p>
<p>745
01:22:28.860 --&gt; 01:22:33.929
Oliver Davies (opdavies): Yeah, I don't know where that is, Ryan, actually. Must be in there somewhere.</p>
<p>746
01:22:34.220 --&gt; 01:22:36.260
Kevin Boyd: Yeah, and there is a bit of documentation.</p>
<p>747
01:22:36.260 --&gt; 01:22:51.649
Oliver Davies (opdavies): And that's why I like it, because it's, it's PHP. So I know how dependency injection container works, I know how Symphony works, and the components that it uses from Symphony. So I know how…</p>
<p>748
01:22:51.700 --&gt; 01:23:00.079
Oliver Davies (opdavies): I could extend it, whereas I wouldn't be able to do that as easily if it was in Go, or JavaScript, or Python, or Rust, or something.</p>
<p>749
01:23:01.690 --&gt; 01:23:04.009
Gabor Szabo: Yeah. Kevin, did you want to say something? Oh, yeah.</p>
<p>750
01:23:04.010 --&gt; 01:23:07.880
Kevin Boyd: I was gonna say that on the Skelton website, Look at that.</p>
<p>751
01:23:07.880 --&gt; 01:23:09.230
Oliver Davies (opdavies): Really?</p>
<p>752
01:23:09.230 --&gt; 01:23:10.670
Gabor Szabo: An oliver doesn't hear you.</p>
<p>753
01:23:10.670 --&gt; 01:23:11.980
Oliver Davies (opdavies): You could do a lot with it.</p>
<p>754
01:23:11.980 --&gt; 01:23:13.200
Gabor Szabo: Can you hear me?</p>
<p>755
01:23:13.200 --&gt; 01:23:15.810
Kevin Boyd: I can hear you, yep. Can you hear me, Oliver?</p>
<p>756
01:23:15.810 --&gt; 01:23:27.550
Oliver Davies (opdavies): The website is sculpin.io, that's where the main documentation is. The codes are GitHub, and the starting point for this demo, is on this URL, but I will…</p>
<p>757
01:23:27.900 --&gt; 01:23:35.359
Oliver Davies (opdavies): Commit everything and push you to a branch after this, so people can refer back to it, or if anybody wants to, after watching the video.</p>
<p>758
01:23:35.690 --&gt; 01:23:40.290
Oliver Davies (opdavies): Got some examples on, PHP and Nix versions.</p>
<p>759
01:23:40.430 --&gt; 01:23:59.859
Oliver Davies (opdavies): And then my site we were just looking at was, is, is there as well, and I do quite a lot of writing about Sculping as well, so quite, quite also recently. Again, it's a bit meta, it's a Sculpin site where I'm posting about sculpting, a lot. But, yeah.</p>
<p>760
01:24:00.090 --&gt; 01:24:08.050
Oliver Davies (opdavies): Follow, follow me, this is all… we talked about RSS earlier on, this is all about RSS for everything on here, so, go mad, go mad.</p>
<p>761
01:24:08.720 --&gt; 01:24:14.170
Oliver Davies (opdavies): So, yeah, feel free to get in touch with him, he's got questions, after the recording, or…</p>
<p>762
01:24:14.170 --&gt; 01:24:14.919
Gabor Szabo: Can you hear me now?</p>
<p>763
01:24:14.920 --&gt; 01:24:15.870
Oliver Davies (opdavies): If you'd like.</p>
<p>764
01:24:16.760 --&gt; 01:24:17.849
Gabor Szabo: Can you hear me now?</p>
<p>765
01:24:18.860 --&gt; 01:24:31.269
Gabor Szabo: No, he can't hear us. This happened, so I'm going to close the video now, soon. Did you try to say something, Kevin? Apparently, Oliver sometimes doesn't hear us, and this is one of the cases, because he…</p>
<p>766
01:24:31.270 --&gt; 01:24:32.090
Oliver Davies (opdavies): Questions?</p>
<p>767
01:24:32.630 --&gt; 01:24:34.250
Kevin Boyd: Yeah,</p>
<p>768
01:24:34.250 --&gt; 01:24:38.260
Oliver Davies (opdavies): Anything else I should show that's really cool in scoping 4 that I've missed?</p>
<p>769
01:24:39.660 --&gt; 01:24:41.129
Kevin Boyd: Can you hear me, Oliver?</p>
<p>770
01:24:44.220 --&gt; 01:24:45.490
Gabor Szabo: Apparently can't.</p>
<p>771
01:24:48.710 --&gt; 01:25:02.460
Kevin Boyd: Yeah, there are cool things in Sculpin 4, such as this editor, where you can edit the page directly or add a file. This editor only shows when you are in the local run mode, it doesn't show on your actual web page.</p>
<p>772
01:25:03.460 --&gt; 01:25:09.870
Kevin Boyd: And it is actually injected on the fly as you… Are in development mode.</p>
<p>773
01:25:10.550 --&gt; 01:25:11.210
Gabor Szabo: Yeah.</p>
<p>774
01:25:11.610 --&gt; 01:25:12.829
Kevin Boyd: It's pretty fun to implement.</p>
<p>775
01:25:16.510 --&gt; 01:25:17.290
Gabor Szabo: Okay.</p>
<p>776
01:25:19.080 --&gt; 01:25:24.909
Gabor Szabo: Yeah, well, Oliver can't hear us, I guess, so I will just…</p>
<p>777
01:25:25.610 --&gt; 01:25:38.759
Gabor Szabo: thank him, then later write to him, so you'll know that he actually liked what he did. So thank you very much for all of you also who were here and commented.</p>
<p>778
01:25:38.760 --&gt; 01:25:48.749
Gabor Szabo: And thanks for those people who are watching us, thanks for watching, and please like the video, and follow the channel, and below the video, you will find the links.</p>
<p>779
01:25:48.870 --&gt; 01:26:05.260
Gabor Szabo: to also, Olivia said that he is going to publish whatever he made into his Git repository, and we'll put the link there, so you can find that, and that's it. I hope to see you in…</p>
<p>780
01:26:05.260 --&gt; 01:26:09.849
Gabor Szabo: one of the upcoming, events. Thank you, and, bye-bye!</p>
]]></content>
    <author>
      <name></name>
    </author>
  </entry>

  <entry>
    <title>PHP on LinkedIn</title>
    <summary type="html"><![CDATA[]]></summary>
    <updated>2026-11-08T15:30:01Z</updated>
    <pubDate>2026-11-08T15:30:01Z</pubDate>
    <link rel="alternate" type="text/html" href="https://php.code-maven.com/linkedin" />
    <id>https://php.code-maven.com/linkedin</id>
    <content type="html"><![CDATA[<p>I maintain the <a href="https://www.linkedin.com/showcase/php-maven/posts/?viewAsMember=true">PHP Maven on LinkedIn</a>. If you have an account on LinkedIn, you are invited to follow the page there.</p>
<p>Keywords used for searching on LinkedIn: PHP, Drupal, Wordpress, (TODO: Laravel, Symfony).</p>
<h2 class="title is-4">Groups</h2>
<p>There are many groups that are focused on PHP:</p>
<table>
<thead>
<tr>
<th>Group</th>
<th>Members</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://www.linkedin.com/groups/42140/">PHP Developers</a></td>
<td>193,224</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/groups/40870/">LinkedPHPers - The Largest PHP Group</a></td>
<td>55,784</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/groups/87251/">PHP Developer Network</a></td>
<td>41,844</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/groups/78637/">PHP Web Development</a></td>
<td>35,490</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/groups/40895/">PHP language</a></td>
<td>23,271</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/groups/24405/">PHP</a></td>
<td>22,928</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/groups/3193941/">Développeur PHP</a></td>
<td>19,064</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/groups/1958013/">PHP &amp; MySQL Discussion / Jobs</a></td>
<td>16,641</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/groups/50812/">PHP-MYSQL</a></td>
<td>11,743</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/groups/3791826/">Australian PHP Freelance/web developer</a></td>
<td>7,497</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/groups/831407/">PHP Community</a></td>
<td>6,780</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/groups/89754/">PHP@India</a></td>
<td>5,767</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/groups/101201/">Israeli PHP Developers</a></td>
<td>1,045</td>
</tr>
</tbody>
</table>
<p>TODO: There are a lot more for &quot;PHP&quot;, and I have not searched for the other keywords yet.</p>
<h2 class="title is-4">User groups (LinkedIn pages)</h2>
<p>There are a few User groups that maintain a page for announcements:</p>
<table>
<thead>
<tr>
<th>Page</th>
<th>Followers</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://www.linkedin.com/company/php-portugal/">PHP Portugal</a></td>
<td>253</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/showcase/longhorn-php/">Longhorn PHP Conference</a></td>
<td>214</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/showcase/php-barcelona/">PHP Barcelona Conference</a></td>
<td>116</td>
</tr>
</tbody>
</table>
<h2 class="title is-4">Companies (LinkedIn pages)</h2>
<p>There are vaious other companies and organizations with their own page:</p>
<table>
<thead>
<tr>
<th>Page</th>
<th>Followers</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://www.linkedin.com/company/phpnet/">PHP</a></td>
<td>232,000</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/wordpress/">WordPress</a></td>
<td>226,000</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/laravel-news/">Laravel News</a></td>
<td>145,000</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/laravel/">Laravel</a></td>
<td>133,000</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/phpfoundation/">The PHP Foundation</a></td>
<td>31,000</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/showcase/wordpress.com/">WordPress.com</a></td>
<td>27,000</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/drupal-association/">Drupal Association</a></td>
<td>19,000</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/drupal-project/">Drupal</a></td>
<td>14,000</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/wordpress-uk/">WordPress UK</a></td>
<td>8,300</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/laravelartisans/">Laravel Artisans Community</a></td>
<td>4,700</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/laravel-ahmedabad/">Laravel Ahmedabad Community</a></td>
<td>3,100</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/laravel-france/">Laravel France</a></td>
<td>2,900</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/drupalconeur/">DrupalCon Europe</a></td>
<td>2,400</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/drupaldevdays/">Drupal Developer Days</a></td>
<td>1,400</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/drupalasia/">Drupal Asia</a></td>
<td>750</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/showcase/drupalcamp-spain/">DrupalCamp Spain</a></td>
<td>429</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/laravel-dubai/">Laravel Dubai</a></td>
<td>416</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/laravel-live-uk/">Laravel Live UK</a></td>
<td>396</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/drupal-ev/">Drupal e.V. - The German Drupal Association</a></td>
<td>272</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/drupalcampitaly/">DrupalCamp Italy</a></td>
<td>263</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/drupal-mumbai/">Drupal Mumbai</a></td>
<td>256</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/laravelukraine/">Laravel Ukraine</a></td>
<td>197</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/laravel-greece/">Laravel Greece</a></td>
<td>190</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/drupal-colorado/">Drupal Colorado</a></td>
<td>125</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/wordpress-dubai/">WordPress Dubai</a></td>
<td>109</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/laravel-chennai-community/">Laravel Chennai Community</a></td>
<td>107</td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/showcase/laravel-gn/">Laravel GN</a></td>
<td>7</td>
</tr>
</tbody>
</table>
]]></content>
    <author>
      <name></name>
    </author>
  </entry>

  <entry>
    <title>Building WordPress Plugins with AI: Spec-Driven Development with PHP and Kiro</title>
    <summary type="html"><![CDATA[]]></summary>
    <updated>2026-08-25T14:30:01Z</updated>
    <pubDate>2026-08-25T14:30:01Z</pubDate>
    <link rel="alternate" type="text/html" href="https://php.code-maven.com/building-wordpress-plugins-with-ai" />
    <id>https://php.code-maven.com/building-wordpress-plugins-with-ai</id>
    <content type="html"><![CDATA[<p>AI can generate PHP code in seconds, but generating code is not the same as engineering a reliable WordPress plugin.</p>
<p>In this talk, we explore how Spec-Driven Development (SDD) changes the way WordPress plugins can be developed with AI. Using Kiro IDE, we will move beyond ad-hoc prompting and define what our plugin should do before asking AI to implement it.</p>
<p>Starting with an idea for a WordPress plugin, we will transform it into structured requirements, technical design, and implementation tasks. We will then use Kiro's AI capabilities to implement the plugin step by step in PHP while respecting WordPress architecture, hooks, security requirements, coding conventions, and maintainability.</p>
<p>The session includes a practical demonstration showing the complete journey from an initial idea to a working WordPress plugin.</p>
<h2 class="title is-4">Bio</h2>
<p><a href="https://www.linkedin.com/in/lifemichael/">Haim Michael</a> is the Founder and CEO of <a href="https://zindell.com/">Zindell Technologies</a>, where he leads the development of several technology ventures, including <a href="https://zindrex.com/">zindrex.com</a>, <a href="https://ngager.pro/">ngager.pro</a>, and <a href="https://prompo.ai/">prompo.ai</a>.</p>
<p>With more than 20 years of experience in software development, architecture, and artificial intelligence, he helps organizations adopt modern, specification-driven approaches to building reliable and scalable systems.</p>
<p>Haim also provides professional training and strategic guidance to technology companies and has lectured at Bar-Ilan University, Ben-Gurion University, Reichman University, HIT, and the Technion.</p>
<h2 class="title is-4">Length</h2>
<p>45 min</p>
<p><a class="button is-primary" href="https://luma.com/1usglot9">register</a></p>
]]></content>
    <author>
      <name></name>
    </author>
  </entry>

  <entry>
    <title>PHP Maven</title>
    <summary type="html"><![CDATA[The text for the search engines]]></summary>
    <updated>2025-09-01T12:30:01Z</updated>
    <pubDate>2025-09-01T12:30:01Z</pubDate>
    <link rel="alternate" type="text/html" href="https://php.code-maven.com/" />
    <id>https://php.code-maven.com/</id>
    <content type="html"><![CDATA[<p><a href="/php/">PHP</a></p>
]]></content>
    <author>
      <name></name>
    </author>
  </entry>

</feed>

