Liquid.cr: kind of liquid template engine

Implementation of liquid template engine for Crystal: https://github.com/TechMagister/liquid.cr

require "liquid"

txt = "
    {% if kenny.sick %}
      Kenny is sick.
    {% elsif kenny.dead %}
      You killed Kenny!  You ***!!!
    {% else %}
      Kenny looks okay --- so far
    {% endif %}
    "
ctx = Liquid::Context.new
ctx.set "kenny", { "sick" => false, "dead" => true}

tpl = Liquid::Template.parse txt  # tpl can be cached and reused

result = tpl.render ctx

Sharn 0.2.0

Hey there! Today, we will be releasing 0.2.0 of Sharn. But before that, what is Sharn?

Sharn is a CLI app/helper that makes managing shards easier. No need to manually add into the shards.yml file. With just a command, you're good to go.

What has changed?

  • Minimum version required to build this is now at 0.23.1.
  • You can now add development dependencies with dev-add command.
  • All commands are now working perfectly. Yey!
  • Restructuring the code base from a single file into their own separate ones.
  • Removing timers for the intro.

But unlike the other releases, 0.2.0 is more stable than ever so you can now use it in production.

Enjoy using it!

Myst v0.4.0 has been released

Version 0.4.0 of the Myst programming language has just been releasd. This release adds a bunch of new standard library methods, some new CLI options (include --eval), and also makes Myst embeddable in other Crystal projects through the new Myst::VM class!

More release notes are available at https://github.com/myst-lang/myst/releases/tag/v0.4.0.

Also, feel free to join us on Discord at https://discord.myst-lang.org to keep up with development in real time!

Extremely fast URL shortener / to.click

Dear friends,

I’m glad to share with you we launched link management hub (not just a shortener, that’s important) written in Crystal. We would like to make sure that widely used services is fast and reliable enough, so we decided to use Crystal lang. The very first question was what to start with, there’re two popular frameworks named Kemal and Amber but both of them seemed too heavy for the task, so the first thing we did was a try to use low level functions to build routes and handle requests, it worked but seemed ugly so we decided to migrate to router.cr as a quite light weight solution that fits our needs. Nevertheless Crystal is not in production stage it's stable enough, we faced several issues with DB but all was solved quite easily.

You can use public space https://to.click to just a shorten link and get a publicly available stats as Google does. Or sign up to hub where you can absolutely for free:

  • create custom links
  • get high QPS up to 20 000 RPM
  • edit already created links
  • create links for different platforms aka targeting
  • create deep links
  • get privately accessed statistics, including
  • - traffic source
  • - platforms
  • - sharing (any bots like facebook, twitter, whatsapp, etc)
  • - languages
  • - countries (cities will be available soon)

Also we have a publicly available Telegram bot http://clc.to/bot and Slack app will be released soon.

Please reach us at support@to.click. We hope you enjoy the service.