Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for tag: page:data_exists #95

Open
adamjohnson opened this issue Sep 24, 2020 · 0 comments
Open

Add support for tag: page:data_exists #95

adamjohnson opened this issue Sep 24, 2020 · 0 comments
Assignees

Comments

@adamjohnson
Copy link
Contributor

How to reproduce

  1. Start hammer: hammer-start
  2. Navigate to the backpage template in the design system: http://localhost:2000/wvu-design-system/views/backpage.html
  3. r:page:data_exists is used in the _wvu-component-footer.html and in the _wvu-check-if-saved.html partials.

Tag to add support for

page:data_exists:

A couple different ways to use it:

<h2><r:page:data_exists /></h2>

<h2><r:page:data_exists for="cool_custom_attribute" /></h2>

<r:set_var name="isSaved" default="{page:data_exists}" />

Link to tags in CleanSlate repo

cleanslate/app/lib/slate/radius/tags/page.rb (Github)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants