Something describing how handebars is used as far as drawing fields

I am looking for some sort of tutorial or whatever about how handlebars fiels are used to create fields and how those fields would be read when saved.  

In my first case I am looking at checkboxes.  I see the field definition in clients/base/fields/bool and I see the edit definition in edit.hbs

in there I basically see

<input type="checkbox"{{#eq action 'disabled'}} disabled{{/eq}}{{#if value}} checked{{/if}}{{#if def.tabindex}} tabindex="{{def.tabindex}}"{{/if}}>

So I am wondering, do I need need to worry about names and ids in the HBS file?  What if my new field (based on checkboxes) needs a class or id to address it?  Is there any problem with me adding it here?

I am also looking fo rany information about what is passed to the HBS file at render time.  Is there a way to see that as there kinda was in smarty?