mazurka v1.0.7 Mazurka.Mediatype.XML

Link to this section Summary

Functions

Create an action block

Create an affordance block

TODO write the docs

Override the content types Mazurka.Mediatype.XML provides

Link to this section Functions

Link to this macro action(block) (macro)

Create an action block

mediatype Mazurka.Mediatype.XML do
  action do
    # action goes here
  end
end
Link to this macro affordance(block) (macro)

Create an affordance block

mediatype Mazurka.Mediatype.XML do
  affordance do
    # affordance goes here
  end
end
Link to this function content_types()

TODO write the docs

Callback implementation for Mazurka.Mediatype.content_types/0.

Link to this macro handle_action(block) (macro)
Link to this macro handle_affordance(affordance, props) (macro)
Link to this macro provides(type) (macro)

Override the content types Mazurka.Mediatype.XML provides

mediatype Mazurka.Mediatype.XML do
  provides "text/plain"
end