29 lines
582 B
Markdown
29 lines
582 B
Markdown
```elixir
|
|
if config_env() != :prod do
|
|
# Configure pandoc (the version is required)
|
|
config :pandoc,
|
|
version: "3.6.1",
|
|
hello: [
|
|
args: fn extra_args ->
|
|
{_, [input_file], _} = OptionParser.parse(extra_args, switches: [])
|
|
~w(--output=../priv/static/posts/#{Path.rootname(input_file)}.html)
|
|
end,
|
|
cd: Path.expand("../documents", __DIR__)
|
|
]
|
|
end
|
|
```
|
|
|
|
**this is a string!!**
|
|
|
|
```moon
|
|
class Thing
|
|
name: "unknown"
|
|
|
|
class Person extends Thing
|
|
say_name: => print "Hel#lo, I am #{@name}!"
|
|
|
|
with Person!
|
|
.name = "MoonScript"
|
|
\say_name!
|
|
```
|