You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some situations it may be wise to use a Formatter pattern instead of a liquid template.
i.e.
classMyFormatterdefauthor(surnames:,givennames:)"#{surnames.join(', ')}, #{givennames.map(&:first).join('. ')}."enddeforder[:author,:title]endendrelaton_object=Relaton.find("xxx")Relaton::Render.new(relaton_object,MyFormatter.new).to_s=>"Bean, M. A. __Some Title.__"
The text was updated successfully, but these errors were encountered:
In some situations it may be wise to use a Formatter pattern instead of a liquid template.
i.e.
The text was updated successfully, but these errors were encountered: