Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add custom router and template #14

Open
ghost opened this issue Dec 13, 2015 · 6 comments
Open

add custom router and template #14

ghost opened this issue Dec 13, 2015 · 6 comments

Comments

@ghost
Copy link

ghost commented Dec 13, 2015

in some cases i will need to set custom page and custom template

for example:

i need to add addintional link "news" to navbar in app.ini, and then i want to have news.html template, in which i would create news feed from blog, social streems and others

@unknwon
Copy link
Member

unknwon commented Dec 13, 2015

Thanks your feedback!

So this sounds like an improvement of page feature? http://peachdocs.org/docs/howto/pages

Which allows custom template (currently does not)

@ghost
Copy link
Author

ghost commented Dec 13, 2015

@unknwon when i start write an issue, i think what is impovement of "page" feature, but when i think - pages will be in docs repository, and the template for this is in the peach.

when i think - what will happen more often?
Edit the custom page ? or Edit the custom page template ?

in my opinion - Edit custom template, is more often operation.

Thats why i think - this feature need shoul be called "Additional landing page" ;-)

"page feature with custom template" is another feature i think.

P.S. here I am beginning to think it may be necessary to use the go-macaron for this purpose - It can be properly used this arch:

www.example.com - go-macaron
www.example.com/news/ - go-macaron
www.example.com/docs - peachdocs

bu there is problem - how i will get syngle style to site and docs ?

@unknwon
Copy link
Member

unknwon commented Dec 13, 2015

Thanks for the detail!

But I'm a bit confused right now:

So you want to write HTML yourself and just add a routing? Shouldn't everything be put into the docs directory (this is the force convention I believe)?

@ghost
Copy link
Author

ghost commented Dec 24, 2015

sorry for the long silence - i have checking the possibility to build the project by go-macaron with Peach as an additional routers and midleware.

The answers is:

  1. Yes - for some pages i want write HTML myself with custom routing
  2. Yes - some content should not be put into the docs. In the docs there is only docs ;-)

@unknwon
Copy link
Member

unknwon commented Dec 25, 2015

@allustin thanks for clarifying!

@Vonor
Copy link
Contributor

Vonor commented Jul 13, 2018

For what you want @allustin I think the best option would be to use Apache/Nginx with reverse proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants