Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Repetitive code makes minor changes annoying to deal with

#11

Most of the code is just repetitive HTML and what not. But since it's repeated in each page everytime, any type of change that is needed would have to be changed on each page. Cumbersome.

Reported by S. Shehzed · November 16th, 2010 @ 06:57 AM

State: resolved
Milestone: v0.1.0
Assigned to: S. Shehzed S. Shehzed

Activity

  1. S. Shehzed
  2. S. Shehzed
    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.

    November 16th, 2010 @ 07:06 AM

  3. S. Shehzed
    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.

    December 6th, 2010 @ 12:31 AM

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.