---
title: "Discussion on \"The one about rendering and displaying code examples in ERB\" | Hashnode"
description: "Discussion on \"The one about rendering and displaying code examples in ERB\". Learn how to build a DRY component showcase in Sinatra. Define ERB examples once to both render the UI component and display its source code."
url: "https://hashnode.com/posts/the-one-about-rendering-and-displaying-code-examples-in-erb/699de8d21ddf529956d7b9eb"
---

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

Discussion

# [The one about rendering and displaying code examples in ERB](https://davidmontesdeoca.dev/the-one-about-rendering-and-displaying-code-examples-in-erb?utm_source=hashnode&utm_medium=feed)

Learn how to build a DRY component showcase in Sinatra. Define ERB examples once to both render the UI component and display its source code.

Feb 24 · 7 min read · davidmontesdeoca.dev  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)
-   [#erb](https://hashnode.com/tag/erb)
-   [#design-systems](https://hashnode.com/tag/design-systems)
-   [#sinatrarb](https://hashnode.com/tag/sinatrarb)
-   [#dry](https://hashnode.com/tag/dry)

## Written by

[David Montesdeoca](https://hashnode.com/@backpackerhh)

@backpackerhh · Gran Canaria, Canary Islands

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

Software Engineer

I love learning new stuff, especially when it comes to building software. I'm really interested in software architecture, clean code, testing and best practices.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
