startbootstrap-sb-admin-2 icon indicating copy to clipboard operation
startbootstrap-sb-admin-2 copied to clipboard

Why Top Bar and Left Menu did not include a single page?

Open oguzhancevik opened this issue 5 years ago • 5 comments

Why do we write the menu and top bar again on every page?

Constant items like menus and topbars need to be defined on a different single page.

Other content pages also call up the page containing these fixed items.,

like the use here:

https://github.com/oguzhancevik/technicalservice/blob/5d051fdb2b8183212153ee86f1b0eea481c38903/src/main/webapp/WEB-INF/template/template.xhtml#L27

oguzhancevik avatar May 02 '20 23:05 oguzhancevik

This is a template. It's not intended that you use it as-is.

tiesont avatar May 02 '20 23:05 tiesont

Yes you are right. But we must prevent the wrong usage from the beginning. Maybe some developers code has duplicate code per page.

oguzhancevik avatar May 03 '20 10:05 oguzhancevik

I'll be moving to Pug in the near future to address this. The source files will use Pug to handle includes that can be used across all of the pages, and the rendered HTML will remain static for those who don't want to use Pug. This change is coming soon!

davidtmiller avatar Jun 19 '20 18:06 davidtmiller

I'll be moving to Pug in the near future to address this. The source files will use Pug to handle includes that can be used across all of the pages, and the rendered HTML will remain static for those who don't want to use Pug. This change is coming soon!

Thank you @davidtmiller

oguzhancevik avatar Jun 20 '20 10:06 oguzhancevik