From 1618470fdbd5ba8227c7b1c3dd630288f131bf8e Mon Sep 17 00:00:00 2001 From: Jon <17364827+sesh22@users.noreply.github.com> Date: Mon, 30 Oct 2017 22:47:08 +0000 Subject: [PATCH] Fixed small typos in README.md (and one in mix.exs). --- README.md | 24 ++++++++++++------------ mix.exs | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 7c1d841..4ffde2c 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ### What is it? Eml makes markup a first class citizen in Elixir. It provides a flexible and -modular toolkit for generating, parsing and manipulating markup. It's main focus +modular toolkit for generating, parsing and manipulating markup. Its main focus is html, but other markup languages could be implemented as well. To start off: @@ -45,8 +45,8 @@ produces ``` ### Why? -Most templating libraries are build around the idea of interpreting strings that -can contain embeded code. This code is mostly used for implementing view logic +Most templating libraries are built around the idea of interpreting strings that +can contain embedded code. This code is mostly used for implementing view logic in the template. You could say that these libraries are making code a first class citizen in template strings. As long as the view logic is simple this works pretty well, but with more complex views this can become quite messy. Eml @@ -79,7 +79,7 @@ iex> use Eml.HTML nil ``` -By invoking `use Eml`, some macro's are imported into the current scope and core +By invoking `use Eml`, some macros are imported into the current scope and core API modules are aliased. `use Eml.HTML` imports all generated html element macros from `Eml.HTML` into the current scope. The element macros just translate to a call to `%Eml.Element{...}`, a struct that is the actual representation of @@ -88,9 +88,9 @@ elements, so they can even be used inside a match. iex> div 42 #div<42> ``` -Here we created a `div` element with `42` as it contents. +Here we created a `div` element with `42` as its contents. -The element macro's in Eml try to be clever about the type of arguments that get +The element macros in Eml try to be clever about the type of arguments that get passed. For example, if the first argument is a Keyword list, it will be interpreted as attributes, otherwise as content. ```elixir @@ -157,7 +157,7 @@ not properly closed. #### Compiling and templates Compiling and templates can be used in situations where most content is static -and performance is critical, since its contents gets precompiled during compiletime. +and performance is critical, since its contents gets precompiled during compile time. Eml uses the assigns extension from `EEx` for parameterizing templates. See the `EEx` docs for more info about them. The function that the template macro @@ -179,7 +179,7 @@ iex> MyTemplates.example text: "Example text" {:safe, "