API Reference
The complete public API of chameleon_partials: register the extension, render partial templates, share render_partial with your view models, and handle errors.
Setup
Register chameleon_partials with Chameleon. Call this once at application startup.
- register_extensions()
-
Register chameleon_partials with Chameleon so partials can be rendered.
Rendering partials
Render partial templates and expose render_partial to your view models.
- render_partial()
-
Render a partial template to an HTML fragment.
- extend_model()
-
Add
render_partialto a view model so templates can call it.
Exceptions
Errors raised by the library.
- PartialsException
-
Raised when chameleon_partials is configured or used incorrectly.