Temple v0.4.4 Temple.Elements View Source

This module contains the primitives used to generate the macros in the Temple.Html and Temple.Svg modules.

Link to this section Summary

Functions

Defines an element.

Link to this section Functions

Link to this macro

defelement(name, type)

View Source (macro)

Defines an element.

Note: Underscores are converted to dashes.

defmodule MyElements do
  import Temple.Elements

  defelement :super_select, :nonvoid # <super-select></super-select>
  defelement :super_input, :void     # <super-input>
end