APISonar


org.jbake.app.Crawler.Attributes.DATE

> org > jbake > app > Crawler > Attributes > DATE
org APIs jbake APIs app APIs Crawler APIs Attributes APIs DATE APIs

Example 1
public FakeDocumentBuilder withDate(Date date) {
        fileModel.put(Crawler.Attributes.DATE, date);
        hasDate = true;
        return this;
    }
Example 2
public void processHeader(final ParserContext context) {
        Map<String, Object> contents = context.getDocumentModel();
        contents.put(Attributes.TYPE, "post");
        contents.put(Attributes.STATUS, "published");
        contents.put(Attributes.TITLE, "Rendering engine missing");
        contents.put(Attributes.DATE, new Date());
        contents.put(Attributes.TAGS, new String[0]);
        contents.put(Attributes.ID, context.getFile().getName());
    }