When I read the source code of a project:
I find there is some _xxx.html
, why the author give the _
? is there extraordinary should pay attention?
EDIT
This is in the Python Django project.
When I read the source code of a project:
I find there is some _xxx.html
, why the author give the _
? is there extraordinary should pay attention?
EDIT
This is in the Python Django project.
The template files are probably partials, or rather templates that aren't meant to be served directly, but rather within another template. Django doesn't seem to have anything specific about how to name your partials, but it does look like it's common practice in MVC frameworks to use _xx.html
as a naming convention.
ASP.Net: ASP.NET MVC3 Partial View naming convention
RoR: http://guides.rubyonrails.org/layouts_and_rendering.html#using-partials
Django: https://oncampus.oberlin.edu/webteam/2012/09/architecture-django-templates