phoenix_markdown v1.0.1 PhoenixMarkdown.Engine View Source

a single public function (compile) that Phoenix uses to compile incoming templates. You should not need to call it yourself.

Link to this section Summary

Link to this section Functions

Callback implementation for Phoenix.Template.Engine.compile/2

Precompiles the String file_path into a function defintion, using the EEx and Earmark engines

The compile function is typically called for by Phoenix’s html engine and isn’t something you need to call your self.

Parameters

  • path path to the template being compiled
  • name name of the template being compiled