Skip to content

Instantly share code, notes, and snippets.

@jscott3201
jscott3201 / custom_pub_chat_template_qwen36.jinja
Created May 25, 2026 17:08
A drop-in replacement chat template for Qwen/Qwen3.6-27B tuned for open-source agentic coding harnesses.
{#---------------------------------------------------------------------
custom_pub_chat_template_qwen36.jinja
=====================================
A public, harness-friendly fork of Qwen's Qwen3.6-27B chat template,
tuned for open-source agentic coding harnesses like:
- anomalyco/opencode (https://github.com/anomalyco/opencode)
- earendil-works/pi (https://github.com/earendil-works/pi)
- openclaw, OpenHarness, similar Claude-Code-style harnesses
WHY THIS FORK EXISTS
@jscott3201
jscott3201 / custom_pub_chat_template_gemma4.jinja
Created May 23, 2026 03:01
A drop-in replacement chat template for google/gemma-4-31B-it tuned for open-source agentic coding harnesses.
{#---------------------------------------------------------------------
custom_pub_chat_template_gemma4.jinja
=====================================
A public, harness-friendly fork of Google's Gemma 4 chat template,
tuned for open-source agentic coding harnesses like:
- anomalyco/opencode (https://github.com/anomalyco/opencode)
- earendil-works/pi (https://github.com/earendil-works/pi)
- openclaw, OpenHarness, similar Claude-Code-style harnesses
WHY THIS FORK EXISTS
@joepie91
joepie91 / express-server-side-rendering.md
Last active January 16, 2026 10:55
Rendering pages server-side with Express (and Pug)

Terminology

  • View: Also called a "template", a file that contains markup (like HTML) and optionally additional instructions on how to generate snippets of HTML, such as text interpolation, loops, conditionals, includes, and so on.
  • View engine: Also called a "template library" or "templater", ie. a library that implements view functionality, and potentially also a custom language for specifying it (like Pug does).
  • HTML templater: A template library that's designed specifically for generating HTML. It understands document structure and thus can provide useful advanced tools like mixins, as well as more secure output escaping (since it can determine the right escaping approach from the context in which a value is used), but it also means that the templater is not useful for anything other than HTML.
  • String-based templater: A template library that implements templating logic, but that has no understanding of the content it is generating - it simply concatenates together strings, potenti