Documentation ¶
Overview ¶
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Index ¶
- type API
- type APIMetadata
- type APIResource
- type AppTemplate
- type IConfig
- type MenuConfig
- type NoPage
- type NoPageItems
- type Pages
- type Paths
- type PromptContent
- type ResourceItem
- type SettingItem
- type SiteConfig
- type SveltinConfig
- func (c *SveltinConfig) GetAPIFilename() string
- func (c *SveltinConfig) GetAPIPath() string
- func (c *SveltinConfig) GetAPIVersion() string
- func (c *SveltinConfig) GetBuildPath() string
- func (c *SveltinConfig) GetConfigPath() string
- func (c *SveltinConfig) GetContentPageFilename() string
- func (c *SveltinConfig) GetContentPath() string
- func (c *SveltinConfig) GetIndexPageFilename() string
- func (c *SveltinConfig) GetLibPath() string
- func (c *SveltinConfig) GetMetadataAPIFilename() string
- func (c *SveltinConfig) GetProjectRoot() string
- func (c *SveltinConfig) GetPublicAPIFilename() string
- func (c *SveltinConfig) GetPublicMetadataAPIFilename() string
- func (c *SveltinConfig) GetRoutesPath() string
- func (c *SveltinConfig) GetSlugPageFilename() string
- func (c *SveltinConfig) GetSrcPath() string
- func (c *SveltinConfig) GetStaticPath() string
- func (c *SveltinConfig) GetThemeComponentsPath() string
- func (c *SveltinConfig) GetThemeConfigFilename() string
- func (c *SveltinConfig) GetThemePartialsPath() string
- func (c *SveltinConfig) GetThemesPath() string
- type SveltinSettings
- type TemplateData
- type Theme
- type TplConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Version string `mapstructure:"version"` Resource APIResource `mapstructure:"resource"` Metadata APIMetadata `mapstructure:"metadata"` }
type APIMetadata ¶
type APIResource ¶
type AppTemplate ¶
type IConfig ¶
type IConfig interface { GetProjectRoot() string GetBuildPath() string GetConfigPath() string GetContentPath() string GetStaticPath() string GetSrcPath() string GetAPIPath() string GetAPIVersion() string GetAPIFilename() string GetPublicAPIFilename() string GetLibPath() string GetRoutesPath() string GetThemesPath() string GetThemeConfigFilename() string GetThemeComponentsPath() string GetThemePartialsPath() string GetIndexPageFilename() string GetSlugPageFilename() string GetContentPageFilename() string }
type MenuConfig ¶
type MenuConfig struct { Resources []*ResourceItem Pages []string WithContent bool }
type NoPage ¶
type NoPage struct { Config *SiteConfig Items *NoPageItems }
type NoPageItems ¶
type Paths ¶
type Paths struct { Build string `mapstructure:"build"` Config string `mapstructure:"config"` Content string `mapstructure:"content"` Static string `mapstructure:"static"` Src string `mapstructure:"src"` Routes string `mapstructure:"routes"` Lib string `mapstructure:"lib"` API string `mapstructure:"api"` Themes string `mapstructure:"themes"` }
type PromptContent ¶
type ResourceItem ¶
type ResourceItem struct {
// contains filtered or unexported fields
}
func NewResourceItem ¶
func NewResourceItem(name string) *ResourceItem
func (*ResourceItem) AddChild ¶
func (r *ResourceItem) AddChild(name string)
func (*ResourceItem) GetContents ¶
func (r *ResourceItem) GetContents() []string
func (*ResourceItem) GetName ¶
func (r *ResourceItem) GetName() string
type SettingItem ¶ added in v0.2.0
type SettingItem struct {
PackageManager string `yaml:"packageManager"`
}
type SiteConfig ¶
type SveltinConfig ¶
type SveltinConfig struct { Pages Pages `mapstructure:"pages"` Paths Paths `mapstructure:"paths"` API API `mapstructure:"api"` Theme Theme `mapstructure:"theme"` }
func (*SveltinConfig) GetAPIFilename ¶
func (c *SveltinConfig) GetAPIFilename() string
func (*SveltinConfig) GetAPIPath ¶
func (c *SveltinConfig) GetAPIPath() string
func (*SveltinConfig) GetAPIVersion ¶
func (c *SveltinConfig) GetAPIVersion() string
func (*SveltinConfig) GetBuildPath ¶
func (c *SveltinConfig) GetBuildPath() string
func (*SveltinConfig) GetConfigPath ¶
func (c *SveltinConfig) GetConfigPath() string
func (*SveltinConfig) GetContentPageFilename ¶
func (c *SveltinConfig) GetContentPageFilename() string
func (*SveltinConfig) GetContentPath ¶
func (c *SveltinConfig) GetContentPath() string
func (*SveltinConfig) GetIndexPageFilename ¶
func (c *SveltinConfig) GetIndexPageFilename() string
func (*SveltinConfig) GetLibPath ¶
func (c *SveltinConfig) GetLibPath() string
func (*SveltinConfig) GetMetadataAPIFilename ¶
func (c *SveltinConfig) GetMetadataAPIFilename() string
func (*SveltinConfig) GetProjectRoot ¶
func (c *SveltinConfig) GetProjectRoot() string
func (*SveltinConfig) GetPublicAPIFilename ¶
func (c *SveltinConfig) GetPublicAPIFilename() string
func (*SveltinConfig) GetPublicMetadataAPIFilename ¶
func (c *SveltinConfig) GetPublicMetadataAPIFilename() string
func (*SveltinConfig) GetRoutesPath ¶
func (c *SveltinConfig) GetRoutesPath() string
func (*SveltinConfig) GetSlugPageFilename ¶
func (c *SveltinConfig) GetSlugPageFilename() string
func (*SveltinConfig) GetSrcPath ¶
func (c *SveltinConfig) GetSrcPath() string
func (*SveltinConfig) GetStaticPath ¶
func (c *SveltinConfig) GetStaticPath() string
func (*SveltinConfig) GetThemeComponentsPath ¶
func (c *SveltinConfig) GetThemeComponentsPath() string
func (*SveltinConfig) GetThemeConfigFilename ¶
func (c *SveltinConfig) GetThemeConfigFilename() string
func (*SveltinConfig) GetThemePartialsPath ¶
func (c *SveltinConfig) GetThemePartialsPath() string
func (*SveltinConfig) GetThemesPath ¶
func (c *SveltinConfig) GetThemesPath() string
type SveltinSettings ¶ added in v0.2.0
type SveltinSettings struct {
Item SettingItem `yaml:"Settings"`
}
func (*SveltinSettings) GetPackageManager ¶ added in v0.2.0
func (s *SveltinSettings) GetPackageManager() string
type TemplateData ¶
type TemplateData struct { ProjectName string Name string Resource string Type string Config *SveltinConfig Menu *MenuConfig NoPage *NoPage Misc string }