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

Helper functions for renders

These functions are accessible inside templates.

Summary

Functions

Either inspects an item or interpolates it.

Converts a string or atom into PascalCase

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.