Skip to content

Commit

Permalink
Merge pull request #1842 from mharris-figma/master
Browse files Browse the repository at this point in the history
fix Tilt.register argument order in readme
  • Loading branch information
jkowens authored Nov 30, 2022
2 parents d645a2f + 39ed78f commit 4162502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -984,15 +984,15 @@ To associate a file extension with a template engine, use
`tt` for Haml templates, you can do the following:

```ruby
Tilt.register :tt, Tilt[:haml]
Tilt.register Tilt[:haml], :tt
```

### Adding Your Own Template Engine

First, register your engine with Tilt, then create a rendering method:

```ruby
Tilt.register :myat, MyAwesomeTemplateEngine
Tilt.register MyAwesomeTemplateEngine, :myat

helpers do
def myat(*args) render(:myat, *args) end
Expand Down

0 comments on commit 4162502

Please sign in to comment.