-
Notifications
You must be signed in to change notification settings - Fork 33
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
Option to disable Default Template Layout #51
Comments
One of the notable feature in aah framework is multi layout and its flexibility. I understand your application need. I will provide a configuration option to disable |
For now create an empty layout file, something like HTMLlf("nolayout.html", "/path/to/tmplfile.html", data) |
thank you |
@jeevatkm Line 183 in 10f79df
https://github.com/go-aah/view/blob/v0-unstable/go_engine.go#L70 |
Did you manually apply commit changes into your local codebase? |
I have not processed yet |
@Lesou this config option to be release in Patch files created from commit sha.
# go to directory
cd $GOPATH/src/aahframework.org/aah.v0
# run this
git reset --hard HEAD
patch -p1 < 0001-50-tmpl-auto-resolve-fix-and-enhancement.txt
patch -p1 < 0001-51-config-option-to-disable-default-tmpl-layout.txt Now test it and let me know. |
hello, not yet solved
aah.conf
2017-05-27 11:10:09.685 ERROR template not found: views\pages\frontend\index\index.html
|
I will check and get back to you, thanks. |
@Lesou Can you apply this patch also and test it? # go to directory
cd $GOPATH/src/aahframework.org/view.v0
# run this
git apply --ignore-space-change --ignore-whitespace view-nolayout.txt |
solve, thank you |
I'm glad to hear that, thanks. BTW, I have a question. when you say no layout? do you mean you don't have header, footer etc. for the certain pages? |
Yes, i am using angular2,Do not need title, footer and so on |
Implemented, to be released with |
Not all templates use Layout, can you cancel DefaultTmplLayout?
The text was updated successfully, but these errors were encountered: