mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Merge pull request #831 from marocchino/add-anchors
FIx Minor styles [CI skip]
This commit is contained in:
commit
b8dc75d760
1 changed files with 6 additions and 5 deletions
11
README.md
11
README.md
|
@ -994,8 +994,9 @@ json[:baz] = key
|
|||
The `:callback` and `:variable` options can be used to decorate the rendered
|
||||
object:
|
||||
|
||||
``` ruby
|
||||
var resource = {"foo":"bar","baz":"qux"}; present(resource);
|
||||
``` javascript
|
||||
var resource = {"foo":"bar","baz":"qux"};
|
||||
present(resource);
|
||||
```
|
||||
|
||||
#### WLang Templates
|
||||
|
@ -1003,7 +1004,7 @@ var resource = {"foo":"bar","baz":"qux"}; present(resource);
|
|||
<table>
|
||||
<tr>
|
||||
<td>Dependency</td>
|
||||
<td><a href="https://github.com/blambeau/wlang/" title="wlang">wlang</a></td>
|
||||
<td><a href="https://github.com/blambeau/wlang/" title="WLang">WLang</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>File Extension</td>
|
||||
|
@ -1015,8 +1016,8 @@ var resource = {"foo":"bar","baz":"qux"}; present(resource);
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
Since calling ruby methods is not idiomatic in wlang, you almost always want to pass locals
|
||||
to it. Layouts written in wlang and `yield` are supported, though.
|
||||
Since calling ruby methods is not idiomatic in WLang, you almost always want to pass locals
|
||||
to it. Layouts written in WLang and `yield` are supported, though.
|
||||
|
||||
### Accessing Variables in Templates
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue