Repetitive code makes minor changes annoying to deal with
-
S. Shehzed
Relates to Ticket #9 There's a mix of php and asp and php-ifying code.
-
S. Shehzed
- Milestone set to v0.1.0
- State changed from new to open
- Milestone order changed from 6 to 0
Mid-solutions:
1. Moved all HTML that isn't part of the unique content for a page into separate files.
2. Created a routing file that takes in the current url and uses that as the title (changes dashes/hypens to spaces).
3. Used same procedure as #2 but extended it to look for a folder by the same name as the current url that will contain the content of the page and navigation.
4. Created a page-structure seperate file that takes in the entire basic structure of the page.All pages will be the same exact code now - just including the routing and page-structure files. Only differences will be the content and navigation in the content folders of each page.
-
S. Shehzed
- State changed from open to resolved
This ticket was created because of huge amounts of html repeating. That is done. There is still some repetition since there is no routing done through a central controller, but instead each page includes the routing file and page structure which causes repitition. However this ticket was not created for this more 'advanced' problem. So it's done.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.