Create function on-the-fly?

Exactly what the error says, you have to call your rule macro from inside a defmodule body. :slight_smile: