functions for ruby slim templating system