@property
    def value(self):
        values = self._value
        if self.render_context:
            from jip.templates import render_template
            rendered = []
            ctx = self.render_context
            for value in values:
                if isinstance(value, basestring):
                    v = render_template(value, **ctx)
                    rendered.append(v)
                elif isinstance(value, Option):
                    v = value.value
                    if self._index < 0:
                        rendered.extend(v)
                    else:
                        rendered.append(v[self._index
                                          if self._index < len(v) else 0])
                else:
                    rendered.append(value)
            # update default
            if self.default is not None and\
                    isinstance(self.default, basestring):
                self.default = render_template(self.default, **ctx)
            self.render_context = None
            self._value = rendered
        if self.default is not None and len(self._value) == 0:
            if isinstance(self.default, (list, tuple)):
                values = []
                values.extend(self.default)
            else:
                values = [self.default]
        return values
Creates an instance of the HTMLParser class.
dataset/ETHPy150Open thasso/pyjip/jip/options.py/Option.value--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/htmllib.py/HTMLParser.__init__