diff --git a/sample_files/elixir_1.ex b/sample_files/elixir_1.ex new file mode 100644 index 000000000..7fec6c3a0 --- /dev/null +++ b/sample_files/elixir_1.ex @@ -0,0 +1,13 @@ +defmodule ExampleComponent do + defp greet do + "Hello world" + end + + def greet_component(assigns) do + ~H""" +

+ <%= greet() %> +

+ """ + end +end diff --git a/sample_files/elixir_2.ex b/sample_files/elixir_2.ex new file mode 100644 index 000000000..76154238a --- /dev/null +++ b/sample_files/elixir_2.ex @@ -0,0 +1,13 @@ +defmodule ExampleComponent do + defp greet_str do + "Hello world!" + end + + def greet_component(assigns) do + ~H""" +

+ <%= greet_str() %> +

+ """ + end +end