middleman example using hamlc and json