Skip to content

Instantly share code, notes, and snippets.

@reatlat
Last active October 4, 2025 18:17
Show Gist options
  • Select an option

  • Save reatlat/b0f2b9d133da031514698e5119afa80d to your computer and use it in GitHub Desktop.

Select an option

Save reatlat/b0f2b9d133da031514698e5119afa80d to your computer and use it in GitHub Desktop.
Placeholder gist for the FreshJuice GitHub Gist module demo page. Demo here: https://demo.freshjuice.dev/modules/code-snippet-github-gist

Multi-file example

This gist contains multiple files. Pick one via data-file.

<!doctype html>
<html>
<body>
<h1>Multi-file Gist</h1>
<p>Use <code>data-file="utils.js"</code> to render only the JS here.</p>
</body>
</html>
export const title = s => s[0].toUpperCase() + s.slice(1);
export const kebab = s => s.toLowerCase().replace(/\s+/g,'-');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment