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

suggestion: support for plain text output #74

Open
timrobinson33 opened this issue Jan 10, 2021 · 0 comments
Open

suggestion: support for plain text output #74

timrobinson33 opened this issue Jan 10, 2021 · 0 comments

Comments

@timrobinson33
Copy link

Converting to plain text would be useful for constructing user messages e.g.

(defn validate-field [object attr]
  (when-not (object attr)
    (str (csk/->plain-text attr) " is mandatory")))

(validate-field user :work-email-address)
=> "Work email address is mandatory"

You'd probably need upper case, lower case, sentence case and title case.

AdamClements added a commit to AdamClements/camel-snake-kebab that referenced this issue Jun 30, 2021
This is for the use-case of formatting a keyword or other symbol into something which you might show to the user in a plain sentence, addressing Feature requests clj-commons#74 and clj-commons#37
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

1 participant