Considering Kirby - Question about HTML, CSS, and Javascript

Hello All,

I have only recently discovered Kirby and am considering using it. I found Kirby after looking at flat file alternatives to Craft, October, and WordPress. I like the idea of being able to design pages using html, css, and javascript, and then have the CMS work with those files to output them on the front end. How much flexibility will I have in Kirby to do that? With Craft and October, for example I could create those files and then bring them into their respective ‘templates’ with Twig tags. I appreciate any feedback! Cheers

Hi Matt.

I like the idea of being able to design pages using html, css, and javascript, and then have the CMS work with those files to output them on the front end.

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.
Functions like snippet() or css()

One thing Kirby has is flexibility.

1 Like

@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.

1 Like

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 :wink:

1 Like

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: