|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface Base
The base interface for Post and Page class.
| 方法摘要 | |
|---|---|
Object |
get(String name)
Get meta data. |
String |
getContent()
Return the post or page content. |
Date |
getDate()
The date format in the source file is 'yyyy-MM-dd HH:mm' or 'yyyy-MM-dd HH:mm:ss'. |
String |
getDateFormatted()
The output date format of the date. |
String |
getLayout()
The layout of source file. |
String |
getPath()
The origin file path of the source file, not source directory prefix. |
String |
getPermalink()
The permalink style. |
Source |
getSource()
The file source. |
Date |
getUpdated()
The updated date format in the source file is 'yyyy-MM-dd HH:mm' or 'yyyy-MM-dd HH:mm:ss'. |
String |
getUpdatedFormatted()
The output date format of the updated date. |
String |
getUrl()
Return the URL. |
void |
set(String name,
Object value)
Set meta data. |
| 方法详细信息 |
|---|
Source getSource()
String getContent()
Converter in generate processing.
String getUrl()
e.g.: '/index.html', '/categories/', '/about/'
If the site url is 'http://press.opoo.org', the site root is '/docs', and this page/post url is '/chapter01/', then the completely URL is 'http://press.opoo.org/docs/chapter01/'.
Site.getRoot()String getPath()
String getLayout()
'nil' means null, not apply any template.
Every layout(except 'nil') has a template defined in templates directory. the template file name is '_<layout>.ftl', can extend OpooPress layout using this mechanism.
String getPermalink()
Date getDate()
Date getUpdated()
String getDateFormatted()
getDate()String getUpdatedFormatted()
getUpdated()Object get(String name)
name -
void set(String name,
Object value)
name - value - get(String)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||