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

default templates in README? #510

Open
benlieb opened this issue May 19, 2016 · 0 comments
Open

default templates in README? #510

benlieb opened this issue May 19, 2016 · 0 comments

Comments

@benlieb
Copy link

benlieb commented May 19, 2016

I think it would be a helpful addition to include the default form templates in the REAME. The section "Customising templates" is nice, but it's not clear how to make sense of it or even IF you'd like to customize them without first seeing them. I was able to look the source and I think I can see the templates themselves:

  template: _.template('\
    <div>\
      <label for="<%= editorId %>">\
        <% if (titleHTML){ %><%= titleHTML %>\
        <% } else { %><%- title %><% } %>\
      </label>\
      <div>\
        <span data-editor></span>\
        <div data-error></div>\
        <div><%= help %></div>\
      </div>\
    </div>\
  ', null, Form.templateSettings),

But that's pretty messy, and I'd rather see it in the README before the customize section. Just my two cents.

Keep up the good work.

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