mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-28 06:05:31 +03:00
Reflect new DataSource.File API in example
This commit is contained in:
parent
31c3af5aa8
commit
2b80fbbfd1
@ -45,7 +45,7 @@ In fact, let's combine our library of authors from 3 different `DataSource`s.
|
||||
```elm
|
||||
authorsFromFile : DataSource (List Author)
|
||||
authorsFromFile =
|
||||
DataSource.File.read "data/authors.json"
|
||||
DataSource.File.rawFile "data/authors.json"
|
||||
authorsDecoder
|
||||
|
||||
allAuthors : DataSource (List Author)
|
||||
|
Loading…
Reference in New Issue
Block a user