AddView add need parse views before View()
(names ...string)
| 534 | |
| 535 | // AddView add need parse views before View() |
| 536 | func (ctx *HttpContext) AddView(names ...string) []string { |
| 537 | var views []string |
| 538 | item, exists := ctx.getInnerItems().Get(innerKeyAddView) |
| 539 | if exists { |
| 540 | views = item.([]string) |
| 541 | } |
| 542 | views = append(views, names...) |
| 543 | ctx.getInnerItems().Set(innerKeyAddView, views) |
| 544 | return views |
| 545 | } |
| 546 | |
| 547 | // View write view content to response |
| 548 | func (ctx *HttpContext) View(name string) error { |
no test coverage detected