# `OctaStar.Actions`

Datastar action expression helpers.

These helpers generate strings for `data-on:*` attributes:

    <button data-on:click={OctaStar.Actions.post(MyAppWeb.CounterController, "increment")}>

# `decode_module`

```elixir
@spec decode_module(String.t()) :: {:ok, module()} | :error
```

Decodes a URL-safe module name into an existing Elixir module.

# `delete`

Generates a `@delete(...)` Datastar action expression.

# `delete`

# `encode_module`

```elixir
@spec encode_module(module()) :: String.t()
```

Encodes an Elixir module name for URL path usage.

# `get`

Generates a `@get(...)` Datastar action expression.

# `get`

# `patch`

Generates a `@patch(...)` Datastar action expression.

# `patch`

# `post`

Generates a `@post(...)` Datastar action expression.

# `post`

# `put`

Generates a `@put(...)` Datastar action expression.

# `put`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
