You are here: Foswiki>Tasks Web>Item9385 (15 Oct 2013, GeorgeClark)Edit Attach

Item9385: INCLUDE should warn if pattern does not match

Priority: Enhancement
Current State: Proposal Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: INCLUDE
Reported By: MichaelTempest
Waiting For:
Last Change By: GeorgeClark
%INCLUDE{"Thatweb.SomeTopic" pattern="foo(.*)bar"}% returns an empty string if the pattern does not match. (This is as far as I got with Item8903.)

Sometimes that is useful, but I think the default behaviour should be a warning. This could be controlled with the warn option. That would makes sense for warn="on" and warn="off", but I don't think using the warn option would make sense for a custom warning e.g. warn="I cannot do it Captain - $topic does not exist!"

This should not go into 1.1 because
  1. The spec is not clear, and
  2. I think a good implementation would involve changing the interface to the IncludeHandlers.

-- MichaelTempest - 24 Jul 2010


ItemTemplate edit

Summary INCLUDE should warn if pattern does not match
ReportedBy MichaelTempest
SVN Range
AppliesTo Engine
Component INCLUDE
Priority Enhancement
CurrentState Proposal Required
TargetRelease n/a
ReleasedIn n/a
Topic revision: r2 - 15 Oct 2013, GeorgeClark - This page was cached on 05 Jun 2020 - 13:20.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy