andreasewering/elm-placeholder/1.0.0

NOTE: the latest version is 2.2.0

Renamed to anmolitor/elm-placeholder. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as andreasewering/elm-placeholder still install under that name. 4 versions of 4 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/anmolitor/elm-placeholder.

What we checked: The repo moved to github.com/anmolitor/elm-placeholder. Rebuilt with git archive from commit 85f2068a0eca of https://github.com/anmolitor/elm-placeholder (zip prefix andreasewering-elm-placeholder-9287198/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 91fb22d99f81675615e19254ee0659ddd8f8bb2f.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/andreasewering/elm-placeholder/zipball/1.0.0/

Placeholder.DoubleCurly

DoubleCurly

Parse Strings into functions using the {{double curly brackets}} placeholder syntax. For more detail, view the documentation in Placeholder.Internal.

parsePlaceholder1 : String -> Result String (String -> String)

Parse a String into a function substituting the argument at the position marked by double curly braces.

> f = parsePlaceholder1 "This is {{name}}s example" |> Result.map ((|> "Andy"))
Ok ("This is Andys example") : Result String String
parsePlaceholder2 : String -> Result String (String -> String -> String)

Parse a String into a function substituting the arguments at the two positions marked by double curly braces.

parsePlaceholder3 : String -> Result String (String -> String -> String -> String)

Parse a String into a function substituting the arguments at the three positions marked by double curly braces.

parsePlaceholder4 : String -> Result String (String -> String -> String -> String -> String)

Parse a String into a function substituting the arguments at the four positions marked by double curly braces.