Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Include support for method calls #67

Closed
ryno1234 opened this issue Aug 24, 2016 · 2 comments
Closed

Feature Request: Include support for method calls #67

ryno1234 opened this issue Aug 24, 2016 · 2 comments

Comments

@ryno1234
Copy link

I find myself needing this when referencing a Date object. I'd love to be able to get the result of ToShortDateString(). In order to use this for my intended purpose, I need to create a whole new custom object to represent all my values in the template, as opposed to using the objects I already have available.

Thoughts?

@jehugaleahsa
Copy link
Owner

Placeholders accept format flags, the same as String.Format. I think
ToShortDateString() is the same as the "d" standard format, eg,
ToString("d") or {key:d} in mustache #.

On Aug 23, 2016 9:03 PM, "Ryan Griffith" notifications@github.com wrote:

I find myself needing this when referencing a Date object. I'd love to be
able to get the result of ToShortDateString(). In order to use this for my
intended purpose, I need to create a whole new custom object to represent
all my values in the template, as opposed to using the objects I already
have available.

Thoughts?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#67, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABTgPiOrufdEsC6G0VbluskN_KJhZLc0ks5qi5hMgaJpZM4Jriit
.

@ryno1234
Copy link
Author

I overlooked this. Perfect, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants