Merge pull request #1842 from mharris-figma/master

fix Tilt.register argument order in readme
This commit is contained in:
Jordan Owens 2022-11-30 17:49:02 -05:00 committed by GitHub
commit 4162502937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -984,7 +984,7 @@ 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
@ -992,7 +992,7 @@ Tilt.register :tt, Tilt[:haml]
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