some improvements + new example (minimal.Rhtml)