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

Access file hash within templates #236

Open
ole-flavia opened this issue Jun 30, 2021 · 3 comments
Open

Access file hash within templates #236

ole-flavia opened this issue Jun 30, 2021 · 3 comments

Comments

@ole-flavia
Copy link

It would be great if the file hash, that is used for fontSrc within css templates, would be accessible by all template types.

Use case:
Generate a HTML file with preload for the font, to be included within server-side rendering.

@baptistemarck
Copy link

that would be really nice

@linuxonrails
Copy link

really very nice!!!

@kairos2109
Copy link

kairos2109 commented Mar 9, 2023

Or maybe make the hash an optional parameter.

Use case:
The hash is controlled by another process (eg. CI/CD) and it's present in the file path:

https://my.cdn.com/hash/icons.css
https://my.cdn.com/hash/index.html
https://my.cdn.com/hash/icons.ttf
...

This way the HTML can preload the fonts and the CSS can reference them with relative paths.

Thoughts?

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

4 participants