tomcatexodus
Aug 23rd, 2010, 10:40 AM
Hello!
I'm revamping a set of classes that I created some time ago for simple HTML document templating, and wanted to give it a bit of a linguistic touch-up. Here are the current names of, and functional purpose of each class. If someone can help me determine a logical and non-clashing set of names, that would be great.
abstract class Template- The root uninstantiatable class from which all other templating objects extend. Contains basic inheritable variables and methods.
class Page - The main source document.
class Component - An "included" document.
class Region - A section of a Page or Component defined for repetition.
class View - A section of a Region, that is repeated based on parameters.
The largest name conflict I see arising is with View, as I intend on using this set of classes in a simple MVC framework I'm constructing. Of course I could prepend each of the class names with something, but in terms of the names reflecting functionality, what should I change?
I'm revamping a set of classes that I created some time ago for simple HTML document templating, and wanted to give it a bit of a linguistic touch-up. Here are the current names of, and functional purpose of each class. If someone can help me determine a logical and non-clashing set of names, that would be great.
abstract class Template- The root uninstantiatable class from which all other templating objects extend. Contains basic inheritable variables and methods.
class Page - The main source document.
class Component - An "included" document.
class Region - A section of a Page or Component defined for repetition.
class View - A section of a Region, that is repeated based on parameters.
The largest name conflict I see arising is with View, as I intend on using this set of classes in a simple MVC framework I'm constructing. Of course I could prepend each of the class names with something, but in terms of the names reflecting functionality, what should I change?