Last active
August 19, 2025 01:46
-
-
Save timkelty/f9553c457abd37bcc3b31253e6301d60 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if cloud.isCraftCloud() %} | |
{% do cloud.enableEsi() %} | |
<esi:include src="{{ src }}" /> | |
{% else %} | |
{% include src only %} | |
{% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
{% include '_esi' with { | |
src: '/username', | |
} %} | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% expires %} | |
username: {{ currentUser ?? 'logged out' }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment