Closed hiphapis closed 6 years ago
This is a matter of taste in designing apis. I've chosen breadcrumb_trail
on purpose to represent the actual behaviour, as the call contains all the breadcrumbs for a given page, commonly referred to as breadcrumb trail. The render_breadcrumb
would suggest that something is being rendered where in actual fact, nothing is, there is no html generated and as such it wouldn't fit. The rails
word doesn't work in the context of English language, breadcrumb trail is a set phrase, I've never heard anyone make breadcrumb rails reference, have you?
I mean, "render ~~~" is coding style of rails. anyway i understand what you say you known, naming is very hard always
Just IMHO,
breadcrumb_trail
is not intuition. latest namebreadcrumbs
is better then current name orrender_breadcrumb
also better and easy i thinkrender
is intuition and like rails more thentrail