|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface Base
The base interface for Post and Page class.
| 方法摘要 | |
|---|---|
java.lang.Object |
get(java.lang.String name)
Get meta data. |
java.lang.String |
getContent()
Return the post or page content. |
java.util.Date |
getDate()
The date format in the source file is 'yyyy-MM-dd HH:mm' or 'yyyy-MM-dd HH:mm:ss'. |
java.lang.String |
getDateFormatted()
The output date format of the date. |
java.lang.String |
getLayout()
The layout of source file. |
java.lang.String |
getPath()
The origin file path of the source file, not source directory prefix. |
java.lang.String |
getPermalink()
The permalink style. |
Source |
getSource()
The file source. |
java.util.Date |
getUpdated()
The updated date format in the source file is 'yyyy-MM-dd HH:mm' or 'yyyy-MM-dd HH:mm:ss'. |
java.lang.String |
getUpdatedFormatted()
The output date format of the updated date. |
java.lang.String |
getUrl()
Return the URL. |
void |
set(java.lang.String name,
java.lang.Object value)
Set meta data. |
| 方法详细信息 |
|---|
Source getSource()
java.lang.String getContent()
Converter in generate processing.
java.lang.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()java.lang.String getPath()
java.lang.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.
java.lang.String getPermalink()
java.util.Date getDate()
java.util.Date getUpdated()
java.lang.String getDateFormatted()
getDate()java.lang.String getUpdatedFormatted()
getUpdated()java.lang.Object get(java.lang.String name)
name -
void set(java.lang.String name,
java.lang.Object value)
name - value - get(String)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||