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: cache_key #99

Open
adamjohnson opened this issue Aug 12, 2021 · 0 comments
Open

Add support for tag: cache_key #99

adamjohnson opened this issue Aug 12, 2021 · 0 comments
Assignees

Comments

@adamjohnson
Copy link
Contributor

How to reproduce

  1. Start hammer: hammer-start
  2. Navigate to the backpage template in Brand Patterns (or any theme you like): http://localhost:2000/brand-patterns/views/backpage.html
  3. Open the Backpage template in the brand-patterns repo in your code editor then add <r:r:cache_key /> anywhere in the template.

Tag to add support for

r:cache_key:

<h1><r:cache_key /></h1>

Example output:

A random 10 digit number:

1627497592

This tag can be useful when building URL's to assets. EG:

https://<r:site:domain />/public/<r:cache_key />/sitemap.xml

Link to tags in CleanSlate repo

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

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

No branches or pull requests

2 participants