---
title: "Discussion on \"How We Replaced a 310-Line Translation Layer with Native TemplateMark Parsing\" | Hashnode"
description: "Discussion on \"How We Replaced a 310-Line Translation Layer with Native TemplateMark Parsing\". TL;DR: We deleted 310 lines of template middleware by switching to native Accord Project TemplateMark grammar. Zero regressions.\nThe Problem\nOur legal agreement templates needed to render in the browser. We had a translation layer converting Template..."
url: "https://hashnode.com/posts/how-we-replaced-a-310-line-translation-layer-with-native-templatemark-parsing/6994e496e2a1742da7f60a32"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How We Replaced a 310-Line Translation Layer with Native TemplateMark Parsing](https://papre.hashnode.dev/how-we-replaced-a-310-line-translation-layer-with-native-templatemark-parsing?utm_source=hashnode&utm_medium=feed)

TL;DR: We deleted 310 lines of template middleware by switching to native Accord Project TemplateMark grammar. Zero regressions. The Problem Our legal agreement templates needed to render in the browser. We had a translation layer converting Template...

Feb 17 · 1 min read · papre.hashnode.dev  
Read the article

-   [#ethereum](https://hashnode.com/tag/ethereum)
-   [#solidity](https://hashnode.com/tag/solidity)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#web3](https://hashnode.com/tag/web3)

## Written by

[Christopher Sove](https://hashnode.com/@papre)

@papre

  
[View profile](https://hashnode.com/@papre)

Composable legal infrastructure. One clause at a time.

## Responses 1

Markdown supported · ⌘↵ to post

[Tiffany Spark](https://hashnode.com/@markupandmatcha)

[Feb 17](https://hashnode.com/posts/how-we-replaced-a-310-line-translation-layer-with-native-templatemark-parsing/6994e496e2a1742da7f60a32/comment/6994fdd5e2a1742da7f60ac2)

deleting 310 lines and getting zero regressions is one of the best feelings in software. the bit about going native with the TemplateMark grammar rather than maintaining your own translation layer is a good reminder that sometimes the right abstraction already exists and you just need to trust it.
