com.machinezoo.pmdata.DataPage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pmdata Show documentation
Show all versions of pmdata Show documentation
Framework for reactive data-driven and data science websites.
// Part of PMData: https://pmdata.machinezoo.com
package com.machinezoo.pmdata;
import java.util.stream.*;
import com.machinezoo.pmdata.widgets.*;
import com.machinezoo.pmsite.*;
import com.machinezoo.stagean.*;
@DraftApi
public class DataPage extends SitePage {
@Override
public DataSite site() {
SiteConfiguration site = super.site();
if (site != null)
return (DataSite)site;
return null;
}
@DraftCode
@Override
public Stream css() {
/*
* File normalize.css should be in resources and uploaded to CDN on demand.
*/
return Stream.concat(super.css(), Stream.of("https://cdn.machinezoo.com/lib/normalize-css/4.1.1/normalize.css", "/defaults.css"));
}
@Override
protected void widgets(SiteTemplate template) {
super.widgets(template);
DataWidgets.register(this, template);
new ArticleHeader().register(template);
DevelopmentStageNotice.registerAll(template);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy