Skip to content

Commit

Permalink
Body not rendering if no any headers or footers registered
Browse files Browse the repository at this point in the history
  • Loading branch information
rezwanahmedsami committed Aug 6, 2023
1 parent 35188e6 commit a23ff8a
Show file tree
Hide file tree
Showing 25 changed files with 50 additions and 345 deletions.
64 changes: 32 additions & 32 deletions projects/expressjs/public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,39 +75,39 @@ routemamba.register_http_routes([
},
]);

routemamba.register_routes_headers([
{
content_url: '/components/header',
preloader: 'loading...',
error_content: 'error',
http_url: [
'/',
'/about',
'/privacy',
'/tabs-example',
'/post/:id',
'/news/:date/:title'
// ,'/page-not-exist'
],
},
]);
// routemamba.register_routes_headers([
// {
// content_url: '/components/header',
// preloader: 'loading...',
// error_content: 'error',
// http_url: [
// '/',
// '/about',
// '/privacy',
// '/tabs-example',
// '/post/:id',
// '/news/:date/:title'
// // ,'/page-not-exist'
// ],
// },
// ]);

routemamba.register_routes_footers([
{
content_url: '/components/footer',
preloader: 'loading...',
error_content: 'error',
http_url: [
'/',
'/about',
'/privacy',
'/tabs-example',
'/post/:id',
'/news/:date/:title'
// ,'/page-not-exist'
],
},
]);
// routemamba.register_routes_footers([
// {
// content_url: '/components/footer',
// preloader: 'loading...',
// error_content: 'error',
// http_url: [
// '/',
// '/about',
// '/privacy',
// '/tabs-example',
// '/post/:id',
// '/news/:date/:title'
// // ,'/page-not-exist'
// ],
// },
// ]);

routemamba.render();

Expand Down
2 changes: 2 additions & 0 deletions projects/golang/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@

# Go workspace file
go.work
# ignore all of public folder
public/dist
3 changes: 0 additions & 3 deletions projects/golang/public/dist/Controllers.d.ts

This file was deleted.

19 changes: 0 additions & 19 deletions projects/golang/public/dist/DomRenderer.d.ts

This file was deleted.

65 changes: 0 additions & 65 deletions projects/golang/public/dist/Global.d.ts

This file was deleted.

4 changes: 0 additions & 4 deletions projects/golang/public/dist/Navigators.d.ts

This file was deleted.

3 changes: 0 additions & 3 deletions projects/golang/public/dist/RmLoaders.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions projects/golang/public/dist/RmRegister.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions projects/golang/public/dist/RmRender.d.ts

This file was deleted.

13 changes: 0 additions & 13 deletions projects/golang/public/dist/RmStateManager.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions projects/golang/public/dist/RmTabsHandler.d.ts

This file was deleted.

13 changes: 0 additions & 13 deletions projects/golang/public/dist/RmValidator.d.ts

This file was deleted.

3 changes: 0 additions & 3 deletions projects/golang/public/dist/RoutesInitializer.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions projects/golang/public/dist/index.d.ts

This file was deleted.

25 changes: 0 additions & 25 deletions projects/golang/public/dist/routemamba.min.js

This file was deleted.

121 changes: 0 additions & 121 deletions projects/golang/public/dist/types.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions projects/golang/public/dist/validators/checkPathParam.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions projects/golang/public/dist/validators/isEmptyObject.d.ts

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions projects/golang/public/dist/validators/isValidServerHost.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions projects/golang/public/dist/validators/isValidUrl.d.ts

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions projects/golang/public/dist/validators/parseQueryString.d.ts

This file was deleted.

Loading

0 comments on commit a23ff8a

Please sign in to comment.