DEV Community

loading...
Cover image for A simple static site generator with Wren

A simple static site generator with Wren

clsource profile image Camilo ・1 min read

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! :)

Discussion (0)

pic
Editor guide