Page not found
- -Sorry, but the page you were trying to get to, does not exist. You -may want to try searching this site using the sidebar - or using our API Reference page -to find what you were looking for.
- - -diff --git a/.gitignore b/.gitignore index ac67aaf..01b6022 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /_build /cover /deps +/doc erl_crash.dump *.ez *.beam diff --git a/doc/.build b/doc/.build deleted file mode 100644 index 8da82c4..0000000 --- a/doc/.build +++ /dev/null @@ -1,17 +0,0 @@ -dist/search_items-e7ab56a2ab.js -dist/app-5c0c23dfec2d63ae33a2.js -dist/elixir-e589b8fad3dab6230c65.css -dist/erlang-9792543de8efae7446f0.css -dist/html/fonts/icomoon.eot -dist/html/fonts/icomoon.svg -dist/html/fonts/icomoon.ttf -dist/html/fonts/icomoon.woff -dist/sidebar_items-91207318ba.js -api-reference.html -search.html -404.html -ProperCase.html -ProperCase.JSONEncoder.html -ProperCase.JSONEncoder.CamelCase.html -ProperCase.Plug.SnakeCaseParams.html -index.html diff --git a/doc/404.html b/doc/404.html deleted file mode 100644 index 86bb5ba..0000000 --- a/doc/404.html +++ /dev/null @@ -1,104 +0,0 @@ - - -
- - - - - -Sorry, but the page you were trying to get to, does not exist. You -may want to try searching this site using the sidebar - or using our API Reference page -to find what you were looking for.
- - - module that exposes a version of encode_to_iodata!/1 that transforms data
- before encoding to json. This is designed to work with phoenix.
Options: - transform - artity 1 function that is executed before passing the result to json_encoder.encode_to_iodata! - json_encoder - JSON encoder that implements encode_to_iodata!. Default: Jason
usage:
def MyApp.CustomJSONEncoder do
- use ProperCase.JSONEncoder, transform: &ProperCase.to_camel_case/1
-end
-
-config.exs
-
-:phoenix, :format_encoders, json: MyApp.CustomJSONEncoder A helpful plug that converts your incoming parameters to
-Elixir's snake_case
Plug it into your router.ex connection pipeline like so:
pipeline :api do
- plug :accepts, ["json"]
- plug ProperCase.Plug.SnakeCaseParams
- end An Elixir library that converts keys in maps between snake_case and camel_case
Converts an atom to a camelCase string
Converts a string to camelCase
Converts a string to snake_case
Converts all the keys in a map to camelCase if mode is :lower or CamleCase if mode is :upper.
-If the map is a struct with no Enumerable implementation,
-the struct is considered to be a single value.
Converts all the keys in a map to snake_case.
-If the map is a struct with no Enumerable implementation,
-the struct is considered to be a single value.
Converts an atom to a camelCase string
Converts a string to camelCase
Converts a string to snake_case
Converts all the keys in a map to camelCase if mode is :lower or CamleCase if mode is :upper.
-If the map is a struct with no Enumerable implementation,
-the struct is considered to be a single value.
Converts all the keys in a map to snake_case.
-If the map is a struct with no Enumerable implementation,
-the struct is considered to be a single value.
An Elixir library that converts keys in maps between snake_case and camel_case
module that exposes a version of encode_to_iodata!/1 that transforms data
- before encoding to json. This is designed to work with phoenix.
A helpful plug that converts your incoming parameters to
-Elixir's snake_case