ogrammer

Results 24 comments of ogrammer

@ebussieres Hi, pull request seems merged. Close issue?

Can confirm, two completely different contexts that used the same import name caused this error. Only solution I know of is to use a different name or no name...

Pull request is merged, why not close the issue?

I also want to use strictVariables, as it would make debugging so much easier, but also need to check for existence of variables. Perhaps a test could be made `{%...

Was pretty easy to implement. ```java import com.mitchellbosecke.pebble.error.PebbleException; import com.mitchellbosecke.pebble.extension.AbstractExtension; import com.mitchellbosecke.pebble.extension.Test; import com.mitchellbosecke.pebble.template.EvaluationContext; import com.mitchellbosecke.pebble.template.EvaluationContextImpl; import com.mitchellbosecke.pebble.template.PebbleTemplate; import java.util.List; import java.util.Map; public class PresentTest extends AbstractExtension implements Test {...

Oh. There is an `is defined` test in the code but not in the documentation. However, that one does not allow for dynamic variable name (can be seen as good...

Perhaps you could make something using this? https://pebbletemplates.io/wiki/guide/extending-pebble/#tags

I made one for you. Create DoTokenParser.java from this code: ```java import com.mitchellbosecke.pebble.extension.NodeVisitor; import com.mitchellbosecke.pebble.lexer.Token; import com.mitchellbosecke.pebble.lexer.TokenStream; import com.mitchellbosecke.pebble.node.AbstractRenderableNode; import com.mitchellbosecke.pebble.node.RenderableNode; import com.mitchellbosecke.pebble.node.expression.Expression; import com.mitchellbosecke.pebble.parser.Parser; import com.mitchellbosecke.pebble.template.EvaluationContextImpl; import com.mitchellbosecke.pebble.template.PebbleTemplateImpl; import...