Raxol.View (Raxol v2.0.1)

View Source

Main view module for Raxol that provides view macros and sigils.

This module provides the ~V sigil used in examples to define views with Raxol's template syntax.

Summary

Functions

Import common view functions and macros.

Parse a template string into a Raxol view structure.

Sigil for creating Raxol views with template syntax.

Functions

__using__(opts)

(macro)

Import common view functions and macros.

parse_template(template, opts \\ [])

Parse a template string into a Raxol view structure.

sigil_V(expr, opts)

(macro)

Sigil for creating Raxol views with template syntax.

Examples

~V"""
<.panel title="Hello">
  <.text>Hello, World!</.text>
</.panel>
"""