feature:hooks

List all template hook registrations declared in a feature’s hooks.py.


Usage

splent feature:hooks <feature_ref> [--json]

Examples

splent feature:hooks splent_feature_auth
splent feature:hooks splent-io/splent_feature_auth
splent feature:hooks splent_feature_auth@v1.2.7
splent feature:hooks splent_feature_auth --json

Options

Option Description
--json Output as a JSON array of {slot, function} objects.

Example output

  Template hooks — splent_feature_auth
  ────────────────────────────────────────────────────────────
  Slot                                       Function
  ────────────────────────────────────────────────────────────
  layout.anonymous_sidebar                   login_signup_items
  layout.authenticated_sidebar               logout_item

Description

Reads src/<namespace>/<feature_name>/hooks.py and parses all register_template_hook(slot, func) calls. Works on both editable and versioned cache entries.


See also


Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es