This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main exposing (main) | |
| import Browser | |
| import Html exposing (..) | |
| import Html.Attributes exposing (..) | |
| import Html.Events exposing (onClick, onInput) | |
| import Http | |
| import Json.Decode as Decode exposing (Decoder, field, oneOf, succeed) | |
| import Json.Decode.Pipeline exposing (hardcoded, optional, required) | |
| import Json.Encode as Encode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # use Mix.Config | |
| # config :constants, | |
| # :some_string: "some_string", | |
| # :range_i_like: 1..5, | |
| # :a_map: %{letters: ~w(a b c)} | |
| defmodule Constants.Macro do | |
| # Take code and convert to AST | |
| # Inject name into quoted expression as the name of the macro |