Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add comment on callable tokens #121

Merged
merged 3 commits into from
Oct 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Mustache

Linux: [![Build Status](https://travis-ci.org/jverzani/Mustache.jl.svg?branch=master)](https://travis-ci.org/jverzani/Mustache.jl)
 
Windows: [![Build Status](https://ci.appveyor.com/api/projects/status/github/jverzani/Mustache.jl?branch=master&svg=true)](https://ci.appveyor.com/project/jverzani/mustache-jl)
[![Build Status](https://travis-ci.com/jverzani/Mustache.jl.svg?branch=master)](https://travis-ci.com/jverzani/Mustache.jl)

[Mustache](http://mustache.github.io/) is

Expand Down Expand Up @@ -85,6 +83,15 @@ render(goes_together, x="Salt", y="pepper")
render(goes_together, x="Bread", y="butter")
```

Keyword arguments can also be passed to a `Tokens` object directly (bypassing the use of `render`):

```julia
goes_together = mt"{{{:x}}} and {{{:y}}}."
goes_together(x="Fish", y="chips")
```



Similarly, a named tuple may be used as a view. As well, one can use
Composite Kinds. This may make writing `show` methods easier:

Expand Down