Skip to content

Add support for tag: cache_key #99

@adamjohnson

Description

@adamjohnson

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions