Templates and ContentIds

Is there a way to get the content id via bindings or some other method to use as a unique value within a template? I want to build anchor tags within a page and the content id would ensure uniqueness.