コード例 #1
0
ファイル: forTest.go プロジェクト: ypapax/all_sublime_plugins
func mainPageMegaLocals(en bool, ds *calldb.DataStore) *MegaLocals {
	locals := ds.GetMainPageLocalsFromCache(en)
	my.P("locals in toMegaLocas.go")
	my.P(locals)
	// html := my.ParseTemplateNoExtMin("mainPageMainContent", locals.MainPageCodes)
	html := minContentByLayout("mainPageMainContent", locals.MainPageCodes)

	return &MegaLocals{

		Title: template.HTML(locals.Title), Desc: locals.Desc, Keywords: locals.Keywords, NextNumbers: locals.NextNumbers,
		MainContent: html,
	}
}
コード例 #2
0
ファイル: forTest.go プロジェクト: ypapax/all_sublime_plugins
func regionMegaLocals(regionId string, en bool, ds *calldb.DataStore) *MegaLocals {
	locals := ds.GetRegionLocals(regionId, en)
	if locals == nil {
		return nil
	} else {
		html := locals.Codes
		title := my.PrepareSymbolsForHtml(locals.Title)
		my.Pat("title in regionMegaLocals")
		my.P(title)
		return &MegaLocals{
			Title: template.HTML(my.PrepareSymbolsForHtml(title)), Desc: locals.Desc, Keywords: locals.Keywords, NextNumbers: locals.NextNumbers,
			MainContent: html,
		}
	}
}