View Source Beacon.Content.Snippets.Helper (Beacon v0.2.1)
Snippet Helpers are blocks of custom Elixir code which can be called from meta tags and various other page fields.
In addition to being scoped by :site
, it stores a :name
with which to call it
and a :body
with the code block to run.
See Beacon.Content.render_snippet/2
for an example of usage.
Do not create or edit snippet helpers manually
Use the public functions in
Beacon.Content
instead. The functions in that module guarantee that all dependencies are created correctly and all processes are updated. Manipulating data manually will most likely result in inconsistent behavior and crashes.