View formatters. #83

Open
bryanp opened this Issue Jun 17, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@bryanp
Member

bryanp commented Jun 17, 2015

I want the ability to specify how the back-end should format values. For example:

<span data-prop="amount" data-format="currency" />

Formatters would then be defined on the backend:

Pakyow::App.formatters do
  formatter :currency do
    # do ze formatting
  end
end

I could imagine that some formatting could use additional specification, like decimal precision:

<span data-prop="number" data-format="decimal[2]" />

@bryanp bryanp added the Feature label Jun 17, 2015

@bryanp bryanp added this to the 1.0 milestone Jun 17, 2015

@bryanp bryanp removed the feature label May 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment