soliCMS

Propulse your website to Infinity & Beyond

Crystal Lang

After trying to improve the Ruby Mustache implementation, we finally chose the Crystal-Lang one.

With some complex template, Ruby implementation can be very slow (~700ms). For the same template / dataset, Crystal version is around 3ms! It can be faster but we are loosing time by launching binary file.

Crystal is a language which looks like Ruby but is not Ruby. We are thinking migrating a lot of things from Ruby to Crystal when it will hit version 1.

Include Highlight.js

If you want to add some well formatted code in your blog posts, you'll have first to include some extra CSS & JS files in your templates. 

Depending the language you want to use, you'll need to adapt the script below.