com.varmateo.yawg.spi.PageVars Maven / Gradle / Ivy
/**************************************************************************
*
* Copyright (c) 2016-2019 Yawg project contributors.
*
**************************************************************************/
package com.varmateo.yawg.spi;
import java.util.Collections;
import java.util.Map;
import java.util.Optional;
/**
* Set of variables made available to the template when generating the
* final bake result.
*
* The meaning of this variables is template specific.
*/
public interface PageVars {
/**
* Retrieves the value of one of the variables.
*
* @param key The name of the variable whose value is to be
* returned.
*
* @return An Optional
containing the value of the
* given variable, or nan empty Optional
if the
* variable does not exist.
*/
Optional
© 2015 - 2024 Weber Informatics LLC | Privacy Policy