Temple v0.3.1 Temple.Elements View Source

This module contains the primitives used to generate the macros in the Temple.Tags module.

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 hypens.

defmodule MyElements do
  import Temple.Elements

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