Harness.Renderer.Helpers (Harness v0.2.8) View Source

Helper functions for renders

These functions are accessible inside templates.

Link to this section Summary

Functions

Either inspects an item or interpolates it.

Converts a string or atom into PascalCase

Link to this section Functions

Link to this function

inspect_or_interpolate(item)

View Source

Either inspects an item or interpolates it.

If the item is a binary, it is interpolated. Else, it is inspected with Kernel.inspect/2 and then interpolated.

Converts a string or atom into PascalCase

Makes use of the Macro.camelize/1 function underneath.