public interface Base
| 限定符和类型 | 方法和说明 |
|---|---|
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)Copyright © 2014-2015 Opoo.org. All Rights Reserved.