Skip to content

Commit e3cbd4c

Browse files
committed
fix links about Streamlined
1 parent 85d49b7 commit e3cbd4c

File tree

1 file changed

+4
-2
lines changed
  • bridgetown-website/src/_docs/components

1 file changed

+4
-2
lines changed

bridgetown-website/src/_docs/components/ruby.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Bear in mind that Ruby components aren't accessible from Liquid templates. So if
4242

4343
## Use Bridgetown::Component for Template Rendering
4444

45-
By subclassing `Bridgetown::Component`, you gain [the ability to write a template](/docs/templates/erb-and-beyond) in ERB, Serbea, or Streamlined.
45+
By subclassing `Bridgetown::Component`, you gain [the ability to write a template](/docs/template-engines/erb-and-beyond) in ERB, Serbea, or Streamlined.
4646

4747
For template engines like ERB, add a template file right next to the component's `.rb` file. The template will automatically get rendered by the component (and you won't need to define a `render_in` method yourself). For example, using ERB:
4848

@@ -73,7 +73,7 @@ Here's the same example using Serbea template syntax:
7373
</field-component>
7474
```
7575

76-
Rendering out the component in a parent template and passing along arguments is straightforward:
76+
Rendering out the component in a parent template and passing along arguments looks like this:
7777

7878
```erb
7979
<%%= render FieldComponent.new(type: "email", name: "email_address", label: "Email Address") %>
@@ -109,6 +109,8 @@ end
109109

110110
Streamlined adds some special helpers so that writing properly-escaped HTML as well as rendering out a hash as attributes or looping through an array is much easier than with plain heredoc syntax. We've found that for complex interplay between Ruby & HTML code, Streamlined is easier to deal with than either ERB or Serbea.
111111

112+
[Read more about how to use Ruby template syntax here.](/docs/template-engines/erb-and-beyond)
113+
112114
<%= render Note.new do %>
113115
Need to add component compatibility with Rails projects? [Try our experimental ViewComponent shim](/docs/components/view-component).
114116
<% end %>

0 commit comments

Comments
 (0)