Skip to content
This repository was archived by the owner on Mar 10, 2021. It is now read-only.

Commit 4ea20c8

Browse files
author
Yulian Glukhenko
committed
updated readme
1 parent 10823d4 commit 4ea20c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ You can have the user specify an image URL and display the image with the `image
145145
becomes...
146146

147147
```eex
148-
<%= content(@conn, "Image identifier", :image, alt: "My alt tag", do: "http://placekitten.com/200/300")
149-
%>
148+
<%= content(@conn, "Image identifier", :image, alt: "My alt tag", do: "http://placekitten.com/200/300") %>
150149
```
151150

152151
If you prefer to use a `div` with a background image, you can use the `background_image`
@@ -190,7 +189,7 @@ config :thesis,
190189
uploader: <MyApp>.<CustomUploaderModule>
191190
```
192191

193-
The module should have an `upload/1` function that accepts a `%Plug.Upload{}` struct. This function should return either `{:ok, "path/to/file.jpg"}` tuple with an image url or path, or {:error, _}. You can view
192+
The module should have an `upload/1` function that accepts a `%Plug.Upload{}` struct. This function should return either `{:ok, "path/to/file.jpg"}` tuple with an image url or path, or `{:error, _}`. You can view
194193
[/lib/thesis/uploaders/repo_uploader.ex](https://github.com/infinitered/thesis-phoenix/blob/master/lib/thesis/uploaders/repo_uploader.ex)
195194
for an example.
196195

0 commit comments

Comments
 (0)