alchemy_cms

https://github.com/magiclabs/alchemy_cms

Ruby

AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻‍♂️

Banzai::Filter::ReferenceFilter#data_attribute

Returns a data attribute String to attach to a reference link

attributes - Hash, where the key becomes the data attribute name and the
             value is the data attribute value

Examples:

  data_attribute(project: 1, issue: 2)
  # => "data-reference-type=\"SomeReferenceFilter\" data-project=\"1\" data-issue=\"2\""

  data_attribute(project: 3, merge_request: 4)
  # => "data-reference-type=\"SomeReferenceFilter\" data-project=\"3\" data-merge-request=\"4\""

Returns a String

Source | Google | Stack overflow

Edit

git clone [email protected]:magiclabs/alchemy_cms.git

cd alchemy_cms

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Banzai--Filter--ReferenceFilter-data_attribute-for-pr


# Commit to git

git add git commit -m "better docs for Banzai::Filter::ReferenceFilter#data_attribute"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Banzai--Filter--ReferenceFilter-data_attribute-for-pr

hub pull-request


# Celebrate!