DEV Community

Cover image for A simple static site generator with Wren
Camilo
Camilo

Posted on

A simple static site generator with Wren

Wren is a small, fast, class-based concurrent scripting language

Think Smalltalk in a Lua-sized package with a dash of Erlang and wrapped up in a familiar, modern syntax.

System.print("Hello, world!")

class Wren {
  flyTo(city) {
    System.print("Flying to %(city)")
  }
}

var adjectives = Fiber.new {
  ["small", "clean", "fast"].each {|word| Fiber.yield(word) }
}

while (!adjectives.isDone) System.print(adjectives.call())
Enter fullscreen mode Exit fullscreen mode

I created Chercán (https://github.com/NinjasCL/chercan) as a simple static site generator where you could create your HTML pages using Wren and Asciidoc.

Check it out! :)

Top comments (0)