Definitely something you can do in Kirby.
In Kirby you can use snippets and templates.
You have helper functions to then include snippets, js and css inside your templates.
One thing Kirby has is flexibility.
@matt.bryant Welcome to the forum. I have used a lot of CMS systems in the past (Ive been building sites for 20 years) and I can honestly say, Kirby is one of the finest. Its very flexible and really powerful.
It would be an idea for you to have a look at the Startkit which is a simple working site you can learn from.
In my opinion Kirby (core) is a great framework (or toolkit) which is very flexible.
It’s strengths are:
- it’s unopinionated, so you can build sites however you like to do.
- It’s very extensible to add your own functionality with pure PHP.
- It can easily become a CMS if you add the Kirby panel to it; then you get the ability to edit your pages in an administration interface with users/roles/…
- It’s very lightweight
- Backing up is breeze. Deployment too. (works very nice in conjunction with version control systems)
- Perfect separation of concerns: Content vs Templates vs JS vs CSS
- Best CMS I’ve used for multi-language websites
- It has great developer experience
- Awesome support via the core team or via the forum
Just try it out
Since you mentioned Twig:
Kirby uses PHP as its template language. It has a very powerful API for fetching pages, files, content fields etc. in your templates. Additionally, you can use plain PHP. This has the advantage that you don’t have to learn a template language like Twig first. Check out the reasoning why Kirby doesn’t use an - additional - template language.
If you prefer a template language, though, you can use one of the plugins: