x_component v0.1.0 API Reference

Modules

X

Component-based HTML templates for Elixir/Phoenix, inspired by Vue. Zero-dependency. Framework/library agnostic. Optimized for Phoenix and Gettext.

Contains X template AST type definitions and functions to work with the AST.

X template compiler module.

Extends given module with the X component functions

X template formatted module.

Contains a set of functions to build a valid and safe HTML from X templates.

X template parser module.

Extends module with ~X sigil to compile templates.

X template tokenizer module.

Contains a set of functions to transform compiled Elixir AST into more performance optimized AST. Also, it contains functions to transform Elixir AST for inline components.

Mix Tasks

Formatter task uses settings from .formatter.exs by default. All project files can be formatted with

New component files can be generated with