├── .asf.yaml
├── .gitattributes
├── .github
└── workflows
│ └── ci.yml
├── .gitignore
├── LICENSE
├── NOTICE
├── README.md
├── RELEASE-NOTES
├── build.gradle.kts
├── buildSrc
├── build.gradle.kts
├── settings.gradle.kts
└── src
│ └── main
│ ├── kotlin
│ └── freemarker
│ │ └── build
│ │ ├── ChecksumFileTask.kt
│ │ ├── CompileJavaccTask.kt
│ │ ├── FreemarkerPathExtensions.kt
│ │ ├── FreemarkerRootExtension.kt
│ │ ├── FreemarkerRootPlugin.kt
│ │ ├── FreemarkerStringExtensions.kt
│ │ ├── FreemarkerVersionService.kt
│ │ ├── JakartaSourceRootGeneratorTask.kt
│ │ ├── ManualBuildTask.kt
│ │ ├── SignatureConfiguration.kt
│ │ └── SignatureTask.kt
│ └── resources
│ └── META-INF
│ └── gradle-plugins
│ └── freemarker-root.properties
├── freemarker-core
└── src
│ ├── main
│ ├── java
│ │ └── freemarker
│ │ │ ├── cache
│ │ │ ├── AndMatcher.java
│ │ │ ├── ByteArrayTemplateLoader.java
│ │ │ ├── CacheStorage.java
│ │ │ ├── CacheStorageWithGetSize.java
│ │ │ ├── ClassTemplateLoader.java
│ │ │ ├── ConcurrentCacheStorage.java
│ │ │ ├── ConditionalTemplateConfigurationFactory.java
│ │ │ ├── FileExtensionMatcher.java
│ │ │ ├── FileNameGlobMatcher.java
│ │ │ ├── FileTemplateLoader.java
│ │ │ ├── FirstMatchTemplateConfigurationFactory.java
│ │ │ ├── MergingTemplateConfigurationFactory.java
│ │ │ ├── MruCacheStorage.java
│ │ │ ├── MultiTemplateLoader.java
│ │ │ ├── NotMatcher.java
│ │ │ ├── NullCacheStorage.java
│ │ │ ├── OrMatcher.java
│ │ │ ├── PathGlobMatcher.java
│ │ │ ├── PathRegexMatcher.java
│ │ │ ├── SoftCacheStorage.java
│ │ │ ├── StatefulTemplateLoader.java
│ │ │ ├── StringTemplateLoader.java
│ │ │ ├── StrongCacheStorage.java
│ │ │ ├── TemplateCache.java
│ │ │ ├── TemplateConfigurationFactory.java
│ │ │ ├── TemplateConfigurationFactoryException.java
│ │ │ ├── TemplateLoader.java
│ │ │ ├── TemplateLoaderUtils.java
│ │ │ ├── TemplateLookupContext.java
│ │ │ ├── TemplateLookupResult.java
│ │ │ ├── TemplateLookupStrategy.java
│ │ │ ├── TemplateNameFormat.java
│ │ │ ├── TemplateSourceMatcher.java
│ │ │ ├── URLTemplateLoader.java
│ │ │ ├── URLTemplateSource.java
│ │ │ ├── _CacheAPI.java
│ │ │ └── package-info.java
│ │ │ ├── core
│ │ │ ├── APINotSupportedTemplateException.java
│ │ │ ├── AbstractJSONLikeFormat.java
│ │ │ ├── AddConcatExpression.java
│ │ │ ├── AliasTargetTemplateValueFormatException.java
│ │ │ ├── AliasTemplateDateFormatFactory.java
│ │ │ ├── AliasTemplateNumberFormatFactory.java
│ │ │ ├── AndExpression.java
│ │ │ ├── ArithmeticEngine.java
│ │ │ ├── ArithmeticExpression.java
│ │ │ ├── Assignment.java
│ │ │ ├── AssignmentInstruction.java
│ │ │ ├── AttemptBlock.java
│ │ │ ├── AutoEscBlock.java
│ │ │ ├── BackwardCompatibleTemplateNumberFormat.java
│ │ │ ├── BlockAssignment.java
│ │ │ ├── BodyInstruction.java
│ │ │ ├── BooleanExpression.java
│ │ │ ├── BooleanLiteral.java
│ │ │ ├── BoundedRangeModel.java
│ │ │ ├── BreakInstruction.java
│ │ │ ├── BreakOrContinueException.java
│ │ │ ├── BugException.java
│ │ │ ├── BuiltIn.java
│ │ │ ├── BuiltInBannedWhenAutoEscaping.java
│ │ │ ├── BuiltInBannedWhenForcedAutoEscaping.java
│ │ │ ├── BuiltInForDate.java
│ │ │ ├── BuiltInForHashEx.java
│ │ │ ├── BuiltInForLegacyEscaping.java
│ │ │ ├── BuiltInForLoopVariable.java
│ │ │ ├── BuiltInForMarkupOutput.java
│ │ │ ├── BuiltInForNode.java
│ │ │ ├── BuiltInForNodeEx.java
│ │ │ ├── BuiltInForNumber.java
│ │ │ ├── BuiltInForSequence.java
│ │ │ ├── BuiltInForString.java
│ │ │ ├── BuiltInWithDirectCallOptimization.java
│ │ │ ├── BuiltInWithParseTimeParameters.java
│ │ │ ├── BuiltInsForCallables.java
│ │ │ ├── BuiltInsForDates.java
│ │ │ ├── BuiltInsForExistenceHandling.java
│ │ │ ├── BuiltInsForHashes.java
│ │ │ ├── BuiltInsForLoopVariables.java
│ │ │ ├── BuiltInsForMarkupOutputs.java
│ │ │ ├── BuiltInsForMultipleTypes.java
│ │ │ ├── BuiltInsForNodes.java
│ │ │ ├── BuiltInsForNumbers.java
│ │ │ ├── BuiltInsForOutputFormatRelated.java
│ │ │ ├── BuiltInsForSequences.java
│ │ │ ├── BuiltInsForStringsBasic.java
│ │ │ ├── BuiltInsForStringsEncoding.java
│ │ │ ├── BuiltInsForStringsMisc.java
│ │ │ ├── BuiltInsForStringsRegexp.java
│ │ │ ├── BuiltInsWithLazyConditionals.java
│ │ │ ├── BuiltinVariable.java
│ │ │ ├── CFormat.java
│ │ │ ├── CSSOutputFormat.java
│ │ │ ├── CTemplateNumberFormat.java
│ │ │ ├── CallPlaceCustomDataInitializationException.java
│ │ │ ├── Case.java
│ │ │ ├── CollectionAndSequence.java
│ │ │ ├── CombinedMarkupOutputFormat.java
│ │ │ ├── CommandLine.java
│ │ │ ├── Comment.java
│ │ │ ├── CommonMarkupOutputFormat.java
│ │ │ ├── CommonTemplateMarkupOutputModel.java
│ │ │ ├── ComparisonExpression.java
│ │ │ ├── CompressedBlock.java
│ │ │ ├── ConditionalBlock.java
│ │ │ ├── Configurable.java
│ │ │ ├── ContinueInstruction.java
│ │ │ ├── CustomAttribute.java
│ │ │ ├── DebugBreak.java
│ │ │ ├── DefaultToExpression.java
│ │ │ ├── DefaultTruncateBuiltinAlgorithm.java
│ │ │ ├── DirectiveCallPlace.java
│ │ │ ├── DollarVariable.java
│ │ │ ├── Dot.java
│ │ │ ├── DotBeforeMethodCall.java
│ │ │ ├── DynamicKeyName.java
│ │ │ ├── DynamicKeyNameBeforeMethodCall.java
│ │ │ ├── ElseOfList.java
│ │ │ ├── Environment.java
│ │ │ ├── EscapeBlock.java
│ │ │ ├── EvalUtil.java
│ │ │ ├── ExistsExpression.java
│ │ │ ├── Expression.java
│ │ │ ├── ExpressionWithFixedResult.java
│ │ │ ├── ExtendedDecimalFormatParser.java
│ │ │ ├── FallbackInstruction.java
│ │ │ ├── FlowControlException.java
│ │ │ ├── FlushInstruction.java
│ │ │ ├── FreeMarkerTree.java
│ │ │ ├── GetOptionalTemplateMethod.java
│ │ │ ├── HTMLOutputFormat.java
│ │ │ ├── HashLiteral.java
│ │ │ ├── ICIChainMember.java
│ │ │ ├── ISOLikeTemplateDateFormat.java
│ │ │ ├── ISOLikeTemplateDateFormatFactory.java
│ │ │ ├── ISOTemplateDateFormat.java
│ │ │ ├── ISOTemplateDateFormatFactory.java
│ │ │ ├── Identifier.java
│ │ │ ├── IfBlock.java
│ │ │ ├── Include.java
│ │ │ ├── IntermediateStreamOperationLikeBuiltIn.java
│ │ │ ├── Interpolation.java
│ │ │ ├── Interpret.java
│ │ │ ├── InvalidFormatParametersException.java
│ │ │ ├── InvalidFormatStringException.java
│ │ │ ├── InvalidReferenceException.java
│ │ │ ├── Items.java
│ │ │ ├── IteratorBlock.java
│ │ │ ├── JSONCFormat.java
│ │ │ ├── JSONOutputFormat.java
│ │ │ ├── JSONParser.java
│ │ │ ├── JavaCFormat.java
│ │ │ ├── JavaScriptCFormat.java
│ │ │ ├── JavaScriptOrJSONCFormat.java
│ │ │ ├── JavaScriptOutputFormat.java
│ │ │ ├── JavaTemplateDateFormat.java
│ │ │ ├── JavaTemplateDateFormatFactory.java
│ │ │ ├── JavaTemplateNumberFormat.java
│ │ │ ├── JavaTemplateNumberFormatFactory.java
│ │ │ ├── LazilyGeneratedCollectionModel.java
│ │ │ ├── LazilyGeneratedCollectionModelEx.java
│ │ │ ├── LazilyGeneratedCollectionModelWithAlreadyKnownSize.java
│ │ │ ├── LazilyGeneratedCollectionModelWithSameSizeCollEx.java
│ │ │ ├── LazilyGeneratedCollectionModelWithSameSizeSeq.java
│ │ │ ├── LazilyGeneratedCollectionModelWithUnknownSize.java
│ │ │ ├── LazyCollectionTemplateModelIterator.java
│ │ │ ├── LazySequenceIterator.java
│ │ │ ├── LegacyCFormat.java
│ │ │ ├── LegacyConstructorParserConfiguration.java
│ │ │ ├── LibraryLoad.java
│ │ │ ├── ListElseContainer.java
│ │ │ ├── ListLiteral.java
│ │ │ ├── ListableRightUnboundedRangeModel.java
│ │ │ ├── LocalContext.java
│ │ │ ├── LocalContextStack.java
│ │ │ ├── LocalLambdaExpression.java
│ │ │ ├── Macro.java
│ │ │ ├── MarkupOutputFormat.java
│ │ │ ├── MarkupOutputFormatBoundBuiltIn.java
│ │ │ ├── MethodCall.java
│ │ │ ├── MiscUtil.java
│ │ │ ├── MixedContent.java
│ │ │ ├── NestedContentNotSupportedException.java
│ │ │ ├── NewBI.java
│ │ │ ├── NoAutoEscBlock.java
│ │ │ ├── NoEscapeBlock.java
│ │ │ ├── NonBooleanException.java
│ │ │ ├── NonDateException.java
│ │ │ ├── NonExtendedHashException.java
│ │ │ ├── NonExtendedNodeException.java
│ │ │ ├── NonHashException.java
│ │ │ ├── NonListableRightUnboundedRangeModel.java
│ │ │ ├── NonMarkupOutputException.java
│ │ │ ├── NonMethodException.java
│ │ │ ├── NonNamespaceException.java
│ │ │ ├── NonNodeException.java
│ │ │ ├── NonNumericalException.java
│ │ │ ├── NonSequenceException.java
│ │ │ ├── NonSequenceOrCollectionException.java
│ │ │ ├── NonStringException.java
│ │ │ ├── NonStringOrTemplateOutputException.java
│ │ │ ├── NonUserDefinedDirectiveLikeException.java
│ │ │ ├── NotExpression.java
│ │ │ ├── NumberLiteral.java
│ │ │ ├── NumericalOutput.java
│ │ │ ├── On.java
│ │ │ ├── OptInTemplateClassResolver.java
│ │ │ ├── OrExpression.java
│ │ │ ├── OutputFormat.java
│ │ │ ├── OutputFormatBlock.java
│ │ │ ├── OutputFormatBoundBuiltIn.java
│ │ │ ├── ParameterRole.java
│ │ │ ├── ParentheticalExpression.java
│ │ │ ├── ParseException.java
│ │ │ ├── ParserConfiguration.java
│ │ │ ├── ParsingNotSupportedException.java
│ │ │ ├── PlainTextOutputFormat.java
│ │ │ ├── PropertySetting.java
│ │ │ ├── RTFOutputFormat.java
│ │ │ ├── Range.java
│ │ │ ├── RangeModel.java
│ │ │ ├── RecoveryBlock.java
│ │ │ ├── RecurseNode.java
│ │ │ ├── RegexpHelper.java
│ │ │ ├── ReturnInstruction.java
│ │ │ ├── RightUnboundedRangeModel.java
│ │ │ ├── Sep.java
│ │ │ ├── SequenceIterator.java
│ │ │ ├── SingleIterationCollectionModel.java
│ │ │ ├── SpecialBuiltIn.java
│ │ │ ├── StandardCFormats.java
│ │ │ ├── StopException.java
│ │ │ ├── StopInstruction.java
│ │ │ ├── StringArraySequence.java
│ │ │ ├── StringLiteral.java
│ │ │ ├── SuppressFBWarnings.java
│ │ │ ├── SwitchBlock.java
│ │ │ ├── TemplateClassResolver.java
│ │ │ ├── TemplateCombinedMarkupOutputModel.java
│ │ │ ├── TemplateConfiguration.java
│ │ │ ├── TemplateDateFormat.java
│ │ │ ├── TemplateDateFormatFactory.java
│ │ │ ├── TemplateElement.java
│ │ │ ├── TemplateElementArrayBuilder.java
│ │ │ ├── TemplateElementsToVisit.java
│ │ │ ├── TemplateFormatUtil.java
│ │ │ ├── TemplateHTMLOutputModel.java
│ │ │ ├── TemplateMarkupOutputModel.java
│ │ │ ├── TemplateNullModel.java
│ │ │ ├── TemplateNumberFormat.java
│ │ │ ├── TemplateNumberFormatFactory.java
│ │ │ ├── TemplateObject.java
│ │ │ ├── TemplatePostProcessor.java
│ │ │ ├── TemplatePostProcessorException.java
│ │ │ ├── TemplateProcessingTracer.java
│ │ │ ├── TemplateRTFOutputModel.java
│ │ │ ├── TemplateValueFormat.java
│ │ │ ├── TemplateValueFormatException.java
│ │ │ ├── TemplateValueFormatFactory.java
│ │ │ ├── TemplateXHTMLOutputModel.java
│ │ │ ├── TemplateXMLOutputModel.java
│ │ │ ├── TextBlock.java
│ │ │ ├── ThreadInterruptionSupportTemplatePostProcessor.java
│ │ │ ├── TokenMgrError.java
│ │ │ ├── TransformBlock.java
│ │ │ ├── TrimInstruction.java
│ │ │ ├── TruncateBuiltinAlgorithm.java
│ │ │ ├── UnaryPlusMinusExpression.java
│ │ │ ├── UncheckedParseException.java
│ │ │ ├── UndefinedCustomFormatException.java
│ │ │ ├── UndefinedOutputFormat.java
│ │ │ ├── UnexpectedTypeException.java
│ │ │ ├── UnformattableValueException.java
│ │ │ ├── UnifiedCall.java
│ │ │ ├── UnknownDateTypeFormattingUnsupportedException.java
│ │ │ ├── UnknownDateTypeParsingUnsupportedException.java
│ │ │ ├── UnparsableValueException.java
│ │ │ ├── UnregisteredOutputFormatException.java
│ │ │ ├── VisitNode.java
│ │ │ ├── XHTMLOutputFormat.java
│ │ │ ├── XMLOutputFormat.java
│ │ │ ├── XSCFormat.java
│ │ │ ├── XSTemplateDateFormat.java
│ │ │ ├── XSTemplateDateFormatFactory.java
│ │ │ ├── _ArrayEnumeration.java
│ │ │ ├── _ArrayIterator.java
│ │ │ ├── _CoreAPI.java
│ │ │ ├── _CoreLocaleUtils.java
│ │ │ ├── _CoreStringUtils.java
│ │ │ ├── _DelayedAOrAn.java
│ │ │ ├── _DelayedConversionToString.java
│ │ │ ├── _DelayedFTLTypeDescription.java
│ │ │ ├── _DelayedGetCanonicalForm.java
│ │ │ ├── _DelayedGetMessage.java
│ │ │ ├── _DelayedGetMessageWithoutStackTop.java
│ │ │ ├── _DelayedJQuote.java
│ │ │ ├── _DelayedJoinWithComma.java
│ │ │ ├── _DelayedOrdinal.java
│ │ │ ├── _DelayedShortClassName.java
│ │ │ ├── _DelayedToString.java
│ │ │ ├── _ErrorDescriptionBuilder.java
│ │ │ ├── _Java16.java
│ │ │ ├── _Java16Impl.java
│ │ │ ├── _Java9.java
│ │ │ ├── _Java9Impl.java
│ │ │ ├── _MarkupBuilder.java
│ │ │ ├── _MessageUtil.java
│ │ │ ├── _MiscTemplateException.java
│ │ │ ├── _ObjectBuilderSettingEvaluationException.java
│ │ │ ├── _ObjectBuilderSettingEvaluator.java
│ │ │ ├── _ParserConfigurationWithInheritedFormat.java
│ │ │ ├── _SettingEvaluationEnvironment.java
│ │ │ ├── _SortedArraySet.java
│ │ │ ├── _TemplateModelException.java
│ │ │ ├── _TimeZoneBuilder.java
│ │ │ ├── _UnexpectedTypeErrorExplainerTemplateModel.java
│ │ │ ├── _UnmodifiableCompositeSet.java
│ │ │ ├── _UnmodifiableSet.java
│ │ │ └── package-info.java
│ │ │ ├── debug
│ │ │ ├── Breakpoint.java
│ │ │ ├── DebugModel.java
│ │ │ ├── DebuggedEnvironment.java
│ │ │ ├── Debugger.java
│ │ │ ├── DebuggerClient.java
│ │ │ ├── DebuggerListener.java
│ │ │ ├── EnvironmentSuspendedEvent.java
│ │ │ ├── impl
│ │ │ │ ├── DebuggerServer.java
│ │ │ │ ├── DebuggerService.java
│ │ │ │ ├── RmiDebugModelImpl.java
│ │ │ │ ├── RmiDebuggedEnvironmentImpl.java
│ │ │ │ ├── RmiDebuggerImpl.java
│ │ │ │ ├── RmiDebuggerListenerImpl.java
│ │ │ │ ├── RmiDebuggerService.java
│ │ │ │ └── SuppressFBWarnings.java
│ │ │ └── package-info.java
│ │ │ ├── ext
│ │ │ ├── beans
│ │ │ │ ├── APIModel.java
│ │ │ │ ├── AllowAllMemberAccessPolicy.java
│ │ │ │ ├── ArgumentTypes.java
│ │ │ │ ├── ArrayModel.java
│ │ │ │ ├── BeanModel.java
│ │ │ │ ├── BeansModelCache.java
│ │ │ │ ├── BeansWrapper.java
│ │ │ │ ├── BeansWrapperBuilder.java
│ │ │ │ ├── BeansWrapperConfiguration.java
│ │ │ │ ├── BeansWrapperSingletonHolder.java
│ │ │ │ ├── BlacklistMemberAccessPolicy.java
│ │ │ │ ├── BooleanModel.java
│ │ │ │ ├── CallableMemberDescriptor.java
│ │ │ │ ├── CharacterOrString.java
│ │ │ │ ├── ClassBasedModelFactory.java
│ │ │ │ ├── ClassChangeNotifier.java
│ │ │ │ ├── ClassIntrospector.java
│ │ │ │ ├── ClassIntrospectorBuilder.java
│ │ │ │ ├── ClassMemberAccessPolicy.java
│ │ │ │ ├── CollectionAdapter.java
│ │ │ │ ├── CollectionModel.java
│ │ │ │ ├── ConstructorMatcher.java
│ │ │ │ ├── DateModel.java
│ │ │ │ ├── DefaultMemberAccessPolicy.java
│ │ │ │ ├── EmptyCallableMemberDescriptor.java
│ │ │ │ ├── EmptyMemberAndArguments.java
│ │ │ │ ├── EnumerationModel.java
│ │ │ │ ├── ExecutableMemberSignature.java
│ │ │ │ ├── FastPropertyDescriptor.java
│ │ │ │ ├── FieldMatcher.java
│ │ │ │ ├── GenericObjectModel.java
│ │ │ │ ├── HashAdapter.java
│ │ │ │ ├── InvalidPropertyException.java
│ │ │ │ ├── IteratorModel.java
│ │ │ │ ├── JRebelClassChangeNotifier.java
│ │ │ │ ├── LegacyDefaultMemberAccessPolicy.java
│ │ │ │ ├── MapModel.java
│ │ │ │ ├── MaybeEmptyCallableMemberDescriptor.java
│ │ │ │ ├── MaybeEmptyMemberAndArguments.java
│ │ │ │ ├── MemberAccessPolicy.java
│ │ │ │ ├── MemberAndArguments.java
│ │ │ │ ├── MemberMatcher.java
│ │ │ │ ├── MemberSelectorListMemberAccessPolicy.java
│ │ │ │ ├── MethodAppearanceFineTuner.java
│ │ │ │ ├── MethodMatcher.java
│ │ │ │ ├── MethodSorter.java
│ │ │ │ ├── NonPrimitiveArrayBackedReadOnlyList.java
│ │ │ │ ├── NumberModel.java
│ │ │ │ ├── OverloadedFixArgsMethods.java
│ │ │ │ ├── OverloadedMethods.java
│ │ │ │ ├── OverloadedMethodsModel.java
│ │ │ │ ├── OverloadedMethodsSubset.java
│ │ │ │ ├── OverloadedNumberUtil.java
│ │ │ │ ├── OverloadedVarArgsMethods.java
│ │ │ │ ├── PrimtiveArrayBackedReadOnlyList.java
│ │ │ │ ├── ReflectionCallableMemberDescriptor.java
│ │ │ │ ├── ResourceBundleModel.java
│ │ │ │ ├── SequenceAdapter.java
│ │ │ │ ├── SetAdapter.java
│ │ │ │ ├── SimpleMapModel.java
│ │ │ │ ├── SimpleMethod.java
│ │ │ │ ├── SimpleMethodModel.java
│ │ │ │ ├── SingletonCustomizer.java
│ │ │ │ ├── StaticModel.java
│ │ │ │ ├── StaticModels.java
│ │ │ │ ├── StringModel.java
│ │ │ │ ├── SuppressFBWarnings.java
│ │ │ │ ├── TemplateAccessible.java
│ │ │ │ ├── TypeFlags.java
│ │ │ │ ├── WhitelistMemberAccessPolicy.java
│ │ │ │ ├── ZeroArgumentNonVoidMethodPolicy.java
│ │ │ │ ├── _BeansAPI.java
│ │ │ │ ├── _EnumModels.java
│ │ │ │ ├── _MethodUtil.java
│ │ │ │ └── package-info.java
│ │ │ ├── dom
│ │ │ │ ├── AtAtKey.java
│ │ │ │ ├── AttributeNodeModel.java
│ │ │ │ ├── CharacterDataNodeModel.java
│ │ │ │ ├── DocumentModel.java
│ │ │ │ ├── DocumentTypeModel.java
│ │ │ │ ├── DomStringUtil.java
│ │ │ │ ├── ElementModel.java
│ │ │ │ ├── JaxenXPathSupport.java
│ │ │ │ ├── NodeListModel.java
│ │ │ │ ├── NodeModel.java
│ │ │ │ ├── NodeOutputter.java
│ │ │ │ ├── PINodeModel.java
│ │ │ │ ├── SunInternalXalanXPathSupport.java
│ │ │ │ ├── Transform.java
│ │ │ │ ├── XPathSupport.java
│ │ │ │ ├── XalanXPathSupport.java
│ │ │ │ ├── _ExtDomApi.java
│ │ │ │ └── package-info.java
│ │ │ ├── jdom
│ │ │ │ ├── NodeListModel.java
│ │ │ │ └── package-info.java
│ │ │ ├── package-info.java
│ │ │ ├── rhino
│ │ │ │ ├── RhinoFunctionModel.java
│ │ │ │ ├── RhinoScriptableModel.java
│ │ │ │ ├── RhinoWrapper.java
│ │ │ │ └── package-info.java
│ │ │ ├── util
│ │ │ │ ├── IdentityHashMap.java
│ │ │ │ ├── ModelCache.java
│ │ │ │ ├── ModelFactory.java
│ │ │ │ ├── WrapperTemplateModel.java
│ │ │ │ └── package-info.java
│ │ │ └── xml
│ │ │ │ ├── Namespaces.java
│ │ │ │ ├── Navigator.java
│ │ │ │ ├── NodeListModel.java
│ │ │ │ ├── NodeOperator.java
│ │ │ │ ├── _Dom4jNavigator.java
│ │ │ │ ├── _DomNavigator.java
│ │ │ │ ├── _JaxenNamespaces.java
│ │ │ │ ├── _JdomNavigator.java
│ │ │ │ └── package-info.java
│ │ │ ├── log
│ │ │ ├── CommonsLoggingLoggerFactory.java
│ │ │ ├── Logger.java
│ │ │ ├── LoggerFactory.java
│ │ │ ├── SLF4JLoggerFactory.java
│ │ │ ├── _AvalonLoggerFactory.java
│ │ │ ├── _CommonsLoggingLoggerFactory.java
│ │ │ ├── _JULLoggerFactory.java
│ │ │ ├── _Log4jLoggerFactory.java
│ │ │ ├── _Log4jOverSLF4JTester.java
│ │ │ ├── _NullLoggerFactory.java
│ │ │ ├── _SLF4JLoggerFactory.java
│ │ │ └── package-info.java
│ │ │ └── template
│ │ │ ├── AdapterTemplateModel.java
│ │ │ ├── AttemptExceptionReporter.java
│ │ │ ├── Configuration.java
│ │ │ ├── DefaultArrayAdapter.java
│ │ │ ├── DefaultEnumerationAdapter.java
│ │ │ ├── DefaultIterableAdapter.java
│ │ │ ├── DefaultIteratorAdapter.java
│ │ │ ├── DefaultListAdapter.java
│ │ │ ├── DefaultMapAdapter.java
│ │ │ ├── DefaultNonListCollectionAdapter.java
│ │ │ ├── DefaultObjectWrapper.java
│ │ │ ├── DefaultObjectWrapperBuilder.java
│ │ │ ├── DefaultObjectWrapperConfiguration.java
│ │ │ ├── EmptyMap.java
│ │ │ ├── FalseTemplateBooleanModel.java
│ │ │ ├── GeneralPurposeNothing.java
│ │ │ ├── IteratorToTemplateModelIteratorAdapter.java
│ │ │ ├── LocalizedString.java
│ │ │ ├── LoggingAttemptExceptionReporter.java
│ │ │ ├── MalformedTemplateNameException.java
│ │ │ ├── MapKeyValuePairIterator.java
│ │ │ ├── MethodCallAwareTemplateHashModel.java
│ │ │ ├── ObjectWrapper.java
│ │ │ ├── ObjectWrapperAndUnwrapper.java
│ │ │ ├── ResourceBundleLocalizedString.java
│ │ │ ├── SerializableTemplateBooleanModel.java
│ │ │ ├── SimpleCollection.java
│ │ │ ├── SimpleDate.java
│ │ │ ├── SimpleHash.java
│ │ │ ├── SimpleList.java
│ │ │ ├── SimpleNumber.java
│ │ │ ├── SimpleObjectWrapper.java
│ │ │ ├── SimpleScalar.java
│ │ │ ├── SimpleSequence.java
│ │ │ ├── SuppressFBWarnings.java
│ │ │ ├── Template.java
│ │ │ ├── TemplateBooleanModel.java
│ │ │ ├── TemplateCollectionModel.java
│ │ │ ├── TemplateCollectionModelEx.java
│ │ │ ├── TemplateDateModel.java
│ │ │ ├── TemplateDirectiveBody.java
│ │ │ ├── TemplateDirectiveModel.java
│ │ │ ├── TemplateException.java
│ │ │ ├── TemplateExceptionHandler.java
│ │ │ ├── TemplateHashModel.java
│ │ │ ├── TemplateHashModelEx.java
│ │ │ ├── TemplateHashModelEx2.java
│ │ │ ├── TemplateMethodModel.java
│ │ │ ├── TemplateMethodModelEx.java
│ │ │ ├── TemplateModel.java
│ │ │ ├── TemplateModelAdapter.java
│ │ │ ├── TemplateModelException.java
│ │ │ ├── TemplateModelIterator.java
│ │ │ ├── TemplateModelListSequence.java
│ │ │ ├── TemplateModelWithAPISupport.java
│ │ │ ├── TemplateNodeModel.java
│ │ │ ├── TemplateNodeModelEx.java
│ │ │ ├── TemplateNotFoundException.java
│ │ │ ├── TemplateNumberModel.java
│ │ │ ├── TemplateScalarModel.java
│ │ │ ├── TemplateSequenceModel.java
│ │ │ ├── TemplateTransformModel.java
│ │ │ ├── TransformControl.java
│ │ │ ├── TrueTemplateBooleanModel.java
│ │ │ ├── Version.java
│ │ │ ├── WrappingTemplateModel.java
│ │ │ ├── _ObjectWrappers.java
│ │ │ ├── _TemplateAPI.java
│ │ │ ├── _VersionInts.java
│ │ │ ├── package-info.java
│ │ │ └── utility
│ │ │ ├── CaptureOutput.java
│ │ │ ├── ClassUtil.java
│ │ │ ├── CollectionUtils.java
│ │ │ ├── Collections12.java
│ │ │ ├── Constants.java
│ │ │ ├── DOMNodeModel.java
│ │ │ ├── DateUtil.java
│ │ │ ├── DeepUnwrap.java
│ │ │ ├── Execute.java
│ │ │ ├── HtmlEscape.java
│ │ │ ├── NormalizeNewlines.java
│ │ │ ├── NullArgumentException.java
│ │ │ ├── NullWriter.java
│ │ │ ├── NumberUtil.java
│ │ │ ├── ObjectConstructor.java
│ │ │ ├── ObjectFactory.java
│ │ │ ├── ObjectWrapperWithAPISupport.java
│ │ │ ├── OptimizerUtil.java
│ │ │ ├── RichObjectWrapper.java
│ │ │ ├── SecurityUtilities.java
│ │ │ ├── StandardCompress.java
│ │ │ ├── StringUtil.java
│ │ │ ├── TemplateModelUtils.java
│ │ │ ├── ToCanonical.java
│ │ │ ├── UndeclaredThrowableException.java
│ │ │ ├── UnrecognizedTimeZoneException.java
│ │ │ ├── UnsupportedNumberClassException.java
│ │ │ ├── WriteProtectable.java
│ │ │ ├── XmlEscape.java
│ │ │ └── package-info.java
│ ├── javacc
│ │ └── freemarker
│ │ │ └── core
│ │ │ └── FTL.jj
│ ├── misc
│ │ ├── identifierChars
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ └── freemarker
│ │ │ │ └── adhoc
│ │ │ │ └── IdentifierCharGenerator.java
│ │ └── overloadedNumberRules
│ │ │ ├── README.txt
│ │ │ ├── config.fmpp
│ │ │ ├── generator.ftl
│ │ │ └── prices.ods
│ ├── resource-templates
│ │ └── freemarker
│ │ │ └── version.properties
│ └── resources
│ │ └── freemarker
│ │ └── ext
│ │ └── beans
│ │ ├── DefaultMemberAccessPolicy-rules
│ │ └── unsafeMethods.properties
│ └── test
│ ├── java
│ └── freemarker
│ │ ├── cache
│ │ ├── FileTemplateLoaderTest.java
│ │ ├── MultiTemplateLoaderTest.java
│ │ ├── TemplateCacheTest.java
│ │ ├── TemplateConfigurationFactoryTest.java
│ │ ├── TemplateNameFormatTest.java
│ │ └── TemplateSourceMatcherTest.java
│ │ ├── core
│ │ ├── ASTBasedErrorMessagesTest.java
│ │ ├── ASTTest.java
│ │ ├── AbsoluteTemplateNameBITest.java
│ │ ├── AppMetaTemplateDateFormatFactory.java
│ │ ├── ArgsSpecialVariableTest.java
│ │ ├── ArithmeticEngineTest.java
│ │ ├── AttemptLoggingTest.java
│ │ ├── BaseNTemplateNumberFormatFactory.java
│ │ ├── BooleanFormatEnvironmentCachingTest.java
│ │ ├── BreakAndContinuePlacementTest.java
│ │ ├── CAndCnBuiltInTest.java
│ │ ├── CFormatTemplateTest.java
│ │ ├── CTemplateNumberFormatTest.java
│ │ ├── CallerTemplateNameTest.java
│ │ ├── CamelCaseTest.java
│ │ ├── CanonicalFormTest.java
│ │ ├── CapturingAssignmentTest.java
│ │ ├── ClassicCompatibleTest.java
│ │ ├── CoercionToTextualTest.java
│ │ ├── CombinedMarkupOutputFormatTest.java
│ │ ├── ConcatenatedSequenceTest.java
│ │ ├── ConfigurableTest.java
│ │ ├── CoreLocaleUtilsTest.java
│ │ ├── CustomCFormat.java
│ │ ├── CustomHTMLOutputFormat.java
│ │ ├── CustomTemplateHTMLModel.java
│ │ ├── DateFormatTest.java
│ │ ├── DefaultTruncateBuiltinAlgorithmTest.java
│ │ ├── DirectiveCallPlaceTest.java
│ │ ├── DummyOutputFormat.java
│ │ ├── EncodingOverrideTest.java
│ │ ├── EndTagSyntaxTest.java
│ │ ├── EnvironmentCustomStateTest.java
│ │ ├── EnvironmentGetTemplateVariantsTest.java
│ │ ├── EpochMillisDivTemplateDateFormatFactory.java
│ │ ├── EpochMillisTemplateDateFormatFactory.java
│ │ ├── EvalJsonBuiltInTest.java
│ │ ├── ExtendedDecimalFormatTest.java
│ │ ├── FilterBiTest.java
│ │ ├── GetOptionalTemplateTest.java
│ │ ├── HTMLISOTemplateDateFormatFactory.java
│ │ ├── HTMLOutputFormatTest.java
│ │ ├── HeaderParsingTest.java
│ │ ├── HexTemplateNumberFormatFactory.java
│ │ ├── IncludeAndImportConfigurableLayersTest.java
│ │ ├── IncludeAndImportTest.java
│ │ ├── InterpolationSyntaxTest.java
│ │ ├── InterpretAndEvalTemplateNameTest.java
│ │ ├── InterpretSettingInheritanceTest.java
│ │ ├── IteratorIssuesTest.java
│ │ ├── JSONParserTest.java
│ │ ├── LambdaParsingTest.java
│ │ ├── LamdaAndEscapeTest.java
│ │ ├── LazilyGeneratedCollectionTest.java
│ │ ├── LegacyFMParserConstructorsTest.java
│ │ ├── ListBreakContinueTest.java
│ │ ├── ListErrorsTest.java
│ │ ├── ListWithStreamLikeBuiltinsTest.java
│ │ ├── LocAndTZSensitiveTemplateDateFormatFactory.java
│ │ ├── LocaleSensitiveTemplateNumberFormatFactory.java
│ │ ├── MapBiTest.java
│ │ ├── MinMaxBITest.java
│ │ ├── MiscErrorMessagesTest.java
│ │ ├── NullTransparencyTest.java
│ │ ├── NumberBiTest.java
│ │ ├── NumberFormatTest.java
│ │ ├── OptInTemplateClassResolverTest.java
│ │ ├── OutputFormatTest.java
│ │ ├── ParseTimeParameterBIErrorMessagesTest.java
│ │ ├── ParsingErrorMessagesTest.java
│ │ ├── PrintfGTemplateNumberFormatFactory.java
│ │ ├── RTFOutputFormatTest.java
│ │ ├── SQLTimeZoneTest.java
│ │ ├── SeldomEscapedOutputFormat.java
│ │ ├── SepParsingBugTest.java
│ │ ├── SequenceBuiltInTest.java
│ │ ├── SettingDirectiveTest.java
│ │ ├── SpecialVariableTest.java
│ │ ├── StringBuiltInTest.java
│ │ ├── StringLiteralInterpolationTest.java
│ │ ├── SwitchTest.java
│ │ ├── TabSizeTest.java
│ │ ├── TagSyntaxVariationsTest.java
│ │ ├── TakeWhileAndDropWhileBiTest.java
│ │ ├── TemplatGetEncodingTest.java
│ │ ├── TemplateConfigurationTest.java
│ │ ├── TemplateConfigurationWithTemplateCacheTest.java
│ │ ├── TemplateDummyOutputModel.java
│ │ ├── TemplateLevelSettings.java
│ │ ├── TemplateNameSpecialVariablesTest.java
│ │ ├── TemplateProcessingTracerTest.java
│ │ ├── TemplateSeldomEscapedOutputModel.java
│ │ ├── TemplateTransformModelTest.java
│ │ ├── ThreadInterruptingSupportTest.java
│ │ ├── TruncateBuiltInTest.java
│ │ ├── TypeErrorMessagesTest.java
│ │ ├── UncheckedExceptionHandlingTest.java
│ │ ├── UnclosedCommentTest.java
│ │ ├── WhitespaceStrippingTest.java
│ │ ├── WithArgsBuiltInTest.java
│ │ ├── XHTMLOutputFormatTest.java
│ │ └── XMLOutputFormatTest.java
│ │ ├── ext
│ │ ├── beans
│ │ │ ├── AbstractParallelIntrospectionTest.java
│ │ │ ├── BeansAPINewInstanceTest.java
│ │ │ ├── BeansWrapperBasics.java
│ │ │ ├── BeansWrapperCachesTest.java
│ │ │ ├── BeansWrapperMiscTest.java
│ │ │ ├── BeansWrapperReadOnlyTest.java
│ │ │ ├── BeansWrapperSingletonsTest.java
│ │ │ ├── BridgeMethodsBean.java
│ │ │ ├── BridgeMethodsBeanBase.java
│ │ │ ├── CommonSupertypeForUnwrappingHintTest.java
│ │ │ ├── DefaultMemberAccessPolicyTest.java
│ │ │ ├── DefaultObjectWrapperMemberAccessPolicyTest.java
│ │ │ ├── EnumModelsTest.java
│ │ │ ├── ErrorMessagesTest.java
│ │ │ ├── FineTuneMethodAppearanceTest.java
│ │ │ ├── GetPropertyNameFromReaderMethodNameTest.java
│ │ │ ├── GetlessMethodsAsPropertyGettersRule.java
│ │ │ ├── IsApplicableTest.java
│ │ │ ├── IsMoreSpecificParameterTypeTest.java
│ │ │ ├── Java8BeansWrapperBridgeMethodsTest.java
│ │ │ ├── Java8BeansWrapperTest.java
│ │ │ ├── Java8BridgeMethodsWithDefaultMethodBean.java
│ │ │ ├── Java8BridgeMethodsWithDefaultMethodBean2.java
│ │ │ ├── Java8BridgeMethodsWithDefaultMethodBeanBase.java
│ │ │ ├── Java8BridgeMethodsWithDefaultMethodBeanBase2.java
│ │ │ ├── Java8DefaultMethodsBean.java
│ │ │ ├── Java8DefaultMethodsBeanBase.java
│ │ │ ├── Java9InstrospectorBugWorkaroundTest.java
│ │ │ ├── LegacyDefaultMemberAccessPolicyTest.java
│ │ │ ├── ManyObjectsOfDifferentClasses.java
│ │ │ ├── ManyStaticsOfDifferentClasses.java
│ │ │ ├── MemberAccessMonitoringTest.java
│ │ │ ├── MemberSelectorListMemberAccessPolicyTest.java
│ │ │ ├── MethodMatcherTest.java
│ │ │ ├── MethodUtilTest.java
│ │ │ ├── MethodUtilTest2.java
│ │ │ ├── MiscNumericalOperationsTest.java
│ │ │ ├── ModelCacheTest.java
│ │ │ ├── OverloadedNumberUtilTest.java
│ │ │ ├── ParameterListPreferabilityTest.java
│ │ │ ├── PrallelObjectIntrospectionTest.java
│ │ │ ├── PrallelStaticIntrospectionTest.java
│ │ │ ├── StaticModelsTest.java
│ │ │ └── TypeFlagsTest.java
│ │ └── dom
│ │ │ ├── DOMConvenienceStaticsTest.java
│ │ │ ├── DOMSiblingTest.java
│ │ │ └── DOMTest.java
│ │ ├── manual
│ │ ├── AbsoluteTemplateNameBIExample.java
│ │ ├── AutoEscapingExample.java
│ │ ├── ConfigureOutputFormatExamples.java
│ │ ├── CustomFormatsExample.java
│ │ ├── ExamplesTest.java
│ │ ├── GettingStartedExample.java
│ │ ├── Product.java
│ │ ├── TemplateConfigurationExamples.java
│ │ ├── UnitAwareTemplateNumberFormatFactory.java
│ │ ├── UnitAwareTemplateNumberModel.java
│ │ ├── WithArgsExamples.java
│ │ └── WithArgsLastExamples.java
│ │ ├── template
│ │ ├── ActualNamingConvetionTest.java
│ │ ├── ActualTagSyntaxTest.java
│ │ ├── ConfigurationTest.java
│ │ ├── CustomAttributeTest.java
│ │ ├── ExceptionTest.java
│ │ ├── GetSourceTest.java
│ │ ├── IncudeFromNamelessTest.java
│ │ ├── JavaCCExceptionAsEOFFixTest.java
│ │ ├── MistakenlyPublicImportAPIsTest.java
│ │ ├── MistakenlyPublicMacroAPIsTest.java
│ │ ├── NullConfigurationTest.java
│ │ ├── StaticObjectWrappersTest.java
│ │ ├── TemplateConstructorsTest.java
│ │ ├── TemplateLanguageVersionTest.java
│ │ ├── TemplateLookupStrategyTest.java
│ │ ├── VersionTest.java
│ │ └── utility
│ │ │ ├── ConstantsTest.java
│ │ │ ├── DateUtilTest.java
│ │ │ ├── DeepUnwrapTest.java
│ │ │ ├── NumberUtilTest.java
│ │ │ ├── StringUtilTest.java
│ │ │ └── TemplateModelUtilTest.java
│ │ └── test
│ │ ├── MonitoredTemplateLoader.java
│ │ ├── RuntimeEnvironmentReporterTest.java
│ │ └── TreeView.java
│ └── resources
│ └── freemarker
│ ├── cache
│ └── test.ftl
│ ├── core
│ ├── ast-1.ast
│ ├── ast-1.ftl
│ ├── ast-assignments.ast
│ ├── ast-assignments.ftl
│ ├── ast-builtins.ast
│ ├── ast-builtins.ftl
│ ├── ast-lambda.ast
│ ├── ast-lambda.ftl
│ ├── ast-locations.ast
│ ├── ast-locations.ftl
│ ├── ast-mixedcontentsimplifications.ast
│ ├── ast-mixedcontentsimplifications.ftl
│ ├── ast-multipleignoredchildren.ast
│ ├── ast-multipleignoredchildren.ftl
│ ├── ast-nestedignoredchildren.ast
│ ├── ast-nestedignoredchildren.ftl
│ ├── ast-range.ast
│ ├── ast-range.ftl
│ ├── ast-strlitinterpolation.ast
│ ├── ast-strlitinterpolation.ftl
│ ├── ast-whitespacestripping.ast
│ ├── ast-whitespacestripping.ftl
│ ├── cano-assignments.ftl
│ ├── cano-assignments.ftl.out
│ ├── cano-builtins.ftl
│ ├── cano-builtins.ftl.out
│ ├── cano-identifier-escaping.ftl
│ ├── cano-identifier-escaping.ftl.out
│ ├── cano-macros.ftl
│ ├── cano-macros.ftl.out
│ ├── cano-strlitinterpolation.ftl
│ ├── cano-strlitinterpolation.ftl.out
│ ├── encodingOverride-ISO-8859-1.ftl
│ └── encodingOverride-UTF-8.ftl
│ ├── ext
│ └── dom
│ │ └── DOMSiblingTest.xml
│ ├── manual
│ ├── AbsoluteTemplateNameBIExample-foo.ftl
│ ├── AbsoluteTemplateNameBIExample-lib.ftl
│ ├── AutoEscapingExample-capture.ftlh
│ ├── AutoEscapingExample-capture.ftlh.out
│ ├── AutoEscapingExample-convert.ftlh
│ ├── AutoEscapingExample-convert.ftlh.out
│ ├── AutoEscapingExample-convert2.ftl
│ ├── AutoEscapingExample-convert2.ftl.out
│ ├── AutoEscapingExample-infoBox.ftlh
│ ├── AutoEscapingExample-infoBox.ftlh.out
│ ├── AutoEscapingExample-markup.ftlh
│ ├── AutoEscapingExample-markup.ftlh.out
│ ├── AutoEscapingExample-stringConcat.ftlh
│ ├── AutoEscapingExample-stringConcat.ftlh.out
│ ├── AutoEscapingExample-stringLiteral.ftlh
│ ├── AutoEscapingExample-stringLiteral.ftlh.out
│ ├── AutoEscapingExample-stringLiteral2.ftlh
│ ├── AutoEscapingExample-stringLiteral2.ftlh.out
│ ├── ConfigureOutputFormatExamples1.properties
│ ├── ConfigureOutputFormatExamples2.properties
│ ├── CustomFormatsExample-alias1.ftlh
│ ├── CustomFormatsExample-alias1.ftlh.out
│ ├── CustomFormatsExample-alias2.ftlh
│ ├── CustomFormatsExample-alias2.ftlh.out
│ ├── CustomFormatsExample-modelAware.ftlh
│ ├── CustomFormatsExample-modelAware.ftlh.out
│ ├── TemplateConfigurationExamples1.properties
│ ├── TemplateConfigurationExamples2.properties
│ ├── TemplateConfigurationExamples3.properties
│ ├── WithArgsExamples-usingWithArgsSpecialVariable.ftl
│ ├── WithArgsExamples-usingWithArgsSpecialVariable.ftl.out
│ ├── WithArgsLastExamples.ftl
│ ├── WithArgsLastExamples.ftl.out
│ ├── dir
│ │ ├── AbsoluteTemplateNameBIExample-foo.ftl
│ │ ├── AbsoluteTemplateNameBIExample-main.ftl
│ │ └── AbsoluteTemplateNameBIExample-main.ftl.out
│ └── test.ftlh
│ └── template
│ ├── toCache1.ftl
│ └── toCache2.ftl
├── freemarker-core16
└── src
│ ├── main
│ └── java
│ │ └── freemarker
│ │ └── core
│ │ └── _Java16Impl.java
│ └── test
│ └── java
│ └── freemarker
│ └── ext
│ └── beans
│ ├── Java16TestClassLoadingCorrectTest.java
│ ├── NotExportedInternalPackageTest.java
│ ├── TestZeroArgumentNonVoidMethodPolicy.java
│ └── TestZeroArgumentNonVoidMethodPolicyAndClashingBeansProps.java
├── freemarker-core9
└── src
│ ├── main
│ └── java
│ │ └── freemarker
│ │ └── core
│ │ └── _Java9Impl.java
│ └── test
│ └── java
│ └── freemarker
│ └── core
│ ├── Java9ImplTest.java
│ └── Java9TestClassLoadingCorrectTest.java
├── freemarker-javax-servlet
└── src
│ ├── main
│ └── java
│ │ └── freemarker
│ │ ├── cache
│ │ └── WebappTemplateLoader.java
│ │ └── ext
│ │ ├── jsp
│ │ ├── CustomTagAndELFunctionCombiner.java
│ │ ├── EventForwarding.java
│ │ ├── FreeMarkerJspApplicationContext.java
│ │ ├── FreeMarkerJspFactory.java
│ │ ├── FreeMarkerPageContext.java
│ │ ├── FreemarkerTag.java
│ │ ├── JspContextModel.java
│ │ ├── JspTagModelBase.java
│ │ ├── JspWriterAdapter.java
│ │ ├── PageContextFactory.java
│ │ ├── SimpleTagDirectiveModel.java
│ │ ├── TagTransformModel.java
│ │ ├── TaglibFactory.java
│ │ ├── TaglibMethodUtil.java
│ │ └── package-info.java
│ │ └── servlet
│ │ ├── AllHttpScopesHashModel.java
│ │ ├── FreemarkerServlet.java
│ │ ├── HttpRequestHashModel.java
│ │ ├── HttpRequestParametersHashModel.java
│ │ ├── HttpSessionHashModel.java
│ │ ├── IncludePage.java
│ │ ├── InitParamParser.java
│ │ ├── ServletContextHashModel.java
│ │ ├── SuppressFBWarnings.java
│ │ └── package-info.java
│ └── test
│ ├── java
│ └── freemarker
│ │ ├── ext
│ │ ├── jsp
│ │ │ ├── JspTestFreemarkerServlet.java
│ │ │ ├── JspTestFreemarkerServletWithDefaultOverride.java
│ │ │ ├── RealServletContainertTest.java
│ │ │ ├── TLDParsingTest.java
│ │ │ ├── TaglibMethodUtilTest.java
│ │ │ ├── taglibmembers
│ │ │ │ ├── AttributeAccessorTag.java
│ │ │ │ ├── AttributeInfoTag.java
│ │ │ │ ├── EnclosingClass.java
│ │ │ │ ├── GetAndSetTag.java
│ │ │ │ ├── TestFunctions.java
│ │ │ │ ├── TestSimpleTag.java
│ │ │ │ ├── TestSimpleTag2.java
│ │ │ │ ├── TestSimpleTag3.java
│ │ │ │ ├── TestTag.java
│ │ │ │ ├── TestTag2.java
│ │ │ │ └── TestTag3.java
│ │ │ └── webapps
│ │ │ │ └── config
│ │ │ │ └── WebappLocalFreemarkerServlet.java
│ │ └── servlet
│ │ │ ├── FreemarkerServletTest.java
│ │ │ └── InitParamParserTest.java
│ │ ├── template
│ │ ├── MockServletContext.java
│ │ ├── SetServletContextForTemplateLoadingTest.java
│ │ └── TemplateNotFoundMessageTest.java
│ │ └── test
│ │ └── servlet
│ │ ├── DefaultModel2TesterAction.java
│ │ ├── Model2Action.java
│ │ ├── Model2TesterServlet.java
│ │ └── WebAppTestCase.java
│ └── resources
│ ├── META-INF
│ └── tldDiscovery MetaInfTldSources-1.tld
│ └── freemarker
│ ├── ext
│ └── jsp
│ │ ├── TLDParsingTest.tld
│ │ ├── templates
│ │ └── classpath-test.ftl
│ │ ├── tldDiscovery-ClassPathTlds-1.tld
│ │ ├── tldDiscovery-ClassPathTlds-2.tld
│ │ └── webapps
│ │ ├── basic
│ │ ├── CONTENTS.txt
│ │ ├── WEB-INF
│ │ │ ├── el-function-tag-name-clash.tld
│ │ │ ├── el-functions.tld
│ │ │ ├── expected
│ │ │ │ ├── attributes-2.3.0.txt
│ │ │ │ ├── attributes-2.3.22-future.txt
│ │ │ │ ├── attributes.txt
│ │ │ │ └── customTags1.txt
│ │ │ ├── test.tld
│ │ │ └── web.xml
│ │ ├── attributes.ftl
│ │ ├── customELFunctions1.ftl
│ │ ├── customELFunctions1.jsp
│ │ ├── customTags1.ftl
│ │ ├── elFunctionsTagNameClash.ftl
│ │ ├── elFunctionsTagNameClash.jsp
│ │ ├── trivial-jstl-@Ignore.ftl
│ │ ├── trivial.ftl
│ │ └── trivial.jsp
│ │ ├── config
│ │ ├── CONTENTS.txt
│ │ ├── WEB-INF
│ │ │ ├── classes
│ │ │ │ ├── sub
│ │ │ │ │ └── test.ftl
│ │ │ │ └── test.ftl
│ │ │ ├── lib
│ │ │ │ └── templates.jar
│ │ │ │ │ └── sub
│ │ │ │ │ └── test2.ftl
│ │ │ ├── templates
│ │ │ │ └── test.ftl
│ │ │ └── web.xml
│ │ └── test.ftl
│ │ ├── errors
│ │ ├── CONTENTS.txt
│ │ ├── WEB-INF
│ │ │ └── web.xml
│ │ ├── failing-parsetime.ftlnv
│ │ ├── failing-parsetime.jsp
│ │ ├── failing-runtime.ftl
│ │ ├── failing-runtime.jsp
│ │ └── not-failing.ftl
│ │ ├── multipleLoaders
│ │ ├── CONTENTS.txt
│ │ └── WEB-INF
│ │ │ ├── templates
│ │ │ └── test.ftl
│ │ │ └── web.xml
│ │ └── tldDiscovery
│ │ ├── CONTENTS.txt
│ │ ├── WEB-INF
│ │ ├── expected
│ │ │ ├── subdir
│ │ │ │ └── test-rel.txt
│ │ │ ├── test-noClasspath.txt
│ │ │ └── test1.txt
│ │ ├── fmtesttag 2.tld
│ │ ├── fmtesttag4.tld
│ │ ├── lib
│ │ │ └── taglib-foo.jar
│ │ │ │ └── META-INF
│ │ │ │ └── foo bar.tld
│ │ ├── subdir-with-tld
│ │ │ └── fmtesttag3.tld
│ │ ├── taglib 2.jar
│ │ │ └── META-INF
│ │ │ │ └── taglib.tld
│ │ └── web.xml
│ │ ├── not-auto-scanned
│ │ └── fmtesttag.tld
│ │ ├── subdir
│ │ └── test-rel.ftl
│ │ ├── test-noClasspath.ftl
│ │ └── test1.ftl
│ └── test
│ └── servlet
│ └── web.xml
├── freemarker-jython20
└── src
│ └── main
│ └── java
│ └── freemarker
│ ├── ext
│ ├── ant
│ │ ├── FreemarkerXmlTask.java
│ │ ├── JythonAntTask.java
│ │ ├── UnlinkedJythonOperations.java
│ │ ├── UnlinkedJythonOperationsImpl.java
│ │ └── package-info.java
│ └── jython
│ │ ├── JythonHashModel.java
│ │ ├── JythonModel.java
│ │ ├── JythonModelCache.java
│ │ ├── JythonNumberModel.java
│ │ ├── JythonSequenceModel.java
│ │ ├── JythonVersionAdapter.java
│ │ ├── JythonVersionAdapterHolder.java
│ │ ├── JythonWrapper.java
│ │ ├── _Jython20And21VersionAdapter.java
│ │ └── package-info.java
│ └── template
│ └── utility
│ └── JythonRuntime.java
├── freemarker-jython22
└── src
│ └── main
│ └── java
│ └── freemarker
│ └── ext
│ └── jython
│ └── _Jython22VersionAdapter.java
├── freemarker-jython25
└── src
│ ├── main
│ └── java
│ │ └── freemarker
│ │ └── ext
│ │ └── jython
│ │ └── _Jython25VersionAdapter.java
│ └── test
│ ├── java
│ └── freemarker
│ │ ├── core
│ │ ├── ObjectBuilderSettingsTest.java
│ │ └── subpkg
│ │ │ ├── PackageVisibleAll.java
│ │ │ ├── PackageVisibleAllWithBuilder.java
│ │ │ ├── PackageVisibleAllWithBuilderBuilder.java
│ │ │ ├── PackageVisibleWithPublicConstructor.java
│ │ │ ├── PublicAll.java
│ │ │ ├── PublicWithMixedConstructors.java
│ │ │ └── PublicWithPackageVisibleConstructor.java
│ │ ├── template
│ │ ├── DefaultObjectWrapperTest.java
│ │ └── SimpleObjectWrapperTest.java
│ │ └── test
│ │ └── templatesuite
│ │ ├── TemplateTestCase.java
│ │ ├── TemplateTestSuite.java
│ │ └── package-info.java
│ └── resources
│ └── freemarker
│ └── test
│ └── templatesuite
│ ├── expected
│ ├── arithmetic.txt
│ ├── bean-maps.txt
│ ├── beans.txt
│ ├── boolean-formatting.txt
│ ├── boolean.txt
│ ├── charset-in-header.txt
│ ├── classic-compatible.txt
│ ├── comment.txt
│ ├── comparisons.txt
│ ├── compress.txt
│ ├── dateformat-java.txt
│ ├── default-xmlns.txt
│ ├── default.txt
│ ├── encoding-builtins-ici-2.3.20.txt
│ ├── encoding-builtins.txt
│ ├── escapes.txt
│ ├── exception.txt
│ ├── exception2.txt
│ ├── exception3.txt
│ ├── exthash.txt
│ ├── hashconcat.txt
│ ├── hashliteral.txt
│ ├── helloworld.txt
│ ├── identifier-escaping.txt
│ ├── identifier-non-ascii.txt
│ ├── if.txt
│ ├── import.txt
│ ├── include.txt
│ ├── include2.txt
│ ├── interpret.txt
│ ├── iterators.txt
│ ├── lastcharacter.txt
│ ├── list-bis.txt
│ ├── list.txt
│ ├── list2.txt
│ ├── list3.txt
│ ├── listhash.txt
│ ├── listhashliteral-ici-2.3.20.txt
│ ├── listhashliteral-ici-2.3.21.txt
│ ├── listliteral.txt
│ ├── localization.txt
│ ├── logging.txt
│ ├── loopvariable.txt
│ ├── macros-return.txt
│ ├── macros.txt
│ ├── macros2.txt
│ ├── multimodels.txt
│ ├── nested.txt
│ ├── new-allowsnothing.txt
│ ├── new-defaultresolver.txt
│ ├── new-optin.txt
│ ├── new-safer.txt
│ ├── new-unrestricted.txt
│ ├── newlines1.txt
│ ├── newlines2.txt
│ ├── non-strict-syntax.txt
│ ├── noparse.txt
│ ├── number-format.txt
│ ├── number-literal.txt
│ ├── number-to-date.txt
│ ├── numerical-cast.txt
│ ├── output-encoding1.txt
│ ├── output-encoding2.txt
│ ├── output-encoding3.txt
│ ├── precedence.txt
│ ├── recover.txt
│ ├── root.txt
│ ├── sequence-builtins.txt
│ ├── specialvars.txt
│ ├── strictinheader.txt
│ ├── string-builtins-regexps-matches.txt
│ ├── string-builtins-regexps.txt
│ ├── string-builtins1.txt
│ ├── string-builtins2.txt
│ ├── stringbimethods.txt
│ ├── stringliteral.txt
│ ├── switch.txt
│ ├── transforms.txt
│ ├── type-builtins-ici-2.3.21.txt
│ ├── type-builtins-ici-2.3.24.txt
│ ├── type-builtins.txt
│ ├── var-layers.txt
│ ├── varargs.txt
│ ├── variables.txt
│ ├── whitespace-trim.txt
│ ├── wstrip-in-header.txt
│ ├── wstripping.txt
│ ├── xml-fragment.txt
│ ├── xml-ns_prefix-scope.txt
│ ├── xml.txt
│ ├── xmlns1.txt
│ ├── xmlns3.txt
│ ├── xmlns4.txt
│ └── xmlns5.txt
│ ├── models
│ ├── BeansTestResources.properties
│ ├── defaultxmlns1.xml
│ ├── xml-ns_prefix-scope.xml
│ ├── xml.xml
│ ├── xmlfragment.xml
│ ├── xmlns.xml
│ ├── xmlns2.xml
│ └── xmlns3.xml
│ ├── templates
│ ├── api-builtins.ftl
│ ├── arithmetic.ftl
│ ├── assignments.ftl
│ ├── bean-maps.ftl
│ ├── beans.ftl
│ ├── boolean-formatting.ftl
│ ├── boolean.ftl
│ ├── charset-in-header.ftl
│ ├── charset-in-header_inc1.ftl
│ ├── charset-in-header_inc2.ftl
│ ├── classic-compatible-mode2.ftl
│ ├── classic-compatible.ftl
│ ├── comment.ftl
│ ├── comparisons.ftl
│ ├── compress.ftl
│ ├── date-type-builtins.ftl
│ ├── dateformat-iso-bi-common.ftl
│ ├── dateformat-iso-bi-ici-2.3.21.ftl
│ ├── dateformat-iso-bi.ftl
│ ├── dateformat-iso-like.ftl
│ ├── dateformat-java.ftl
│ ├── dateparsing.ftl
│ ├── default-xmlns.ftl
│ ├── default.ftl
│ ├── encoding-builtins.ftl
│ ├── escapes.ftl
│ ├── exception.ftl
│ ├── exception2.ftl
│ ├── exception3.ftl
│ ├── existence-operators.ftl
│ ├── hashconcat.ftl
│ ├── hashliteral.ftl
│ ├── helloworld.ftl
│ ├── identifier-escaping.ftl
│ ├── identifier-non-ascii.ftl
│ ├── if.ftl
│ ├── import.ftl
│ ├── import_lib.ftl
│ ├── include.ftl
│ ├── include2-included-encoding.ftl
│ ├── include2-included.ftl
│ ├── include2.ftl
│ ├── included.ftl
│ ├── interpret.ftl
│ ├── iterators.ftl
│ ├── lastcharacter.ftl
│ ├── list-bis.ftl
│ ├── list.ftl
│ ├── list2.ftl
│ ├── list3.ftl
│ ├── listhash.ftl
│ ├── listhashliteral.ftl
│ ├── listliteral.ftl
│ ├── localization.ftl
│ ├── localization_en.ftl
│ ├── localization_en_AU.ftl
│ ├── logging.ftl
│ ├── loopvariable.ftl
│ ├── macros-return.ftl
│ ├── macros.ftl
│ ├── macros2.ftl
│ ├── multimodels.ftl
│ ├── nested.ftl
│ ├── nestedinclude.ftl
│ ├── new-allowsnothing.ftl
│ ├── new-defaultresolver.ftl
│ ├── new-optin.ftl
│ ├── new-safer.ftl
│ ├── new-unrestricted.ftl
│ ├── newlines1.ftl
│ ├── newlines2.ftl
│ ├── non-strict-syntax.ftl
│ ├── noparse.ftl
│ ├── number-format.ftl
│ ├── number-literal.ftl
│ ├── number-math-builtins.ftl
│ ├── number-to-date.ftl
│ ├── numerical-cast.ftl
│ ├── output-encoding1.ftl
│ ├── output-encoding2.ftl
│ ├── output-encoding3.ftl
│ ├── overloaded-methods-2-bwici-2.3.20.ftl
│ ├── overloaded-methods-2-bwici-2.3.21.ftl
│ ├── overloaded-methods-2-common.ftl
│ ├── overloaded-methods-2-desc-bwici-2.3.20.ftl
│ ├── overloaded-methods-2-inc-bwici-2.3.20.ftl
│ ├── overloaded-methods-23bc.ftl
│ ├── precedence.ftl
│ ├── range-common.ftl
│ ├── range-ici-2.3.20.ftl
│ ├── range-ici-2.3.21.ftl
│ ├── range-lazy.ftl
│ ├── recover.ftl
│ ├── root.ftl
│ ├── sequence-builtins.ftl
│ ├── setting.ftl
│ ├── simplehash-char-key.ftl
│ ├── specialvars.ftl
│ ├── strictinheader.ftl
│ ├── strictinheader_inc1.ftl
│ ├── strictinheader_inc2.ftl
│ ├── string-builtin-coercion.ftl
│ ├── string-builtins-ici-2.3.19.ftl
│ ├── string-builtins-ici-2.3.20.ftl
│ ├── string-builtins-regexps-matches.ftl
│ ├── string-builtins-regexps.ftl
│ ├── string-builtins1.ftl
│ ├── string-builtins2.ftl
│ ├── string-builtins3.ftl
│ ├── stringbimethods.ftl
│ ├── stringliteral.ftl
│ ├── subdir
│ │ ├── include-subdir.ftl
│ │ ├── include-subdir2.ftl
│ │ ├── new-optin-2.ftl
│ │ ├── new-optin.ftl
│ │ └── subsub
│ │ │ └── new-optin.ftl
│ ├── switch-builtin.ftl
│ ├── switch.ftl
│ ├── then-builtin.ftl
│ ├── transforms.ftl
│ ├── type-builtins.ftl
│ ├── undefined.ftl
│ ├── url.ftl
│ ├── var-layers.ftl
│ ├── varargs.ftl
│ ├── variables.ftl
│ ├── varlayers_lib.ftl
│ ├── whitespace-trim.ftl
│ ├── wsstripinheader_inc.ftl
│ ├── wstrip-in-header.ftl
│ ├── xml-fragment.ftl
│ ├── xml-ns_prefix-scope-lib.ftl
│ ├── xml-ns_prefix-scope-main.ftl
│ ├── xml.ftl
│ ├── xmlns1.ftl
│ ├── xmlns3.ftl
│ ├── xmlns4.ftl
│ └── xmlns5.ftl
│ └── testcases.xml
├── freemarker-manual
└── src
│ └── main
│ └── docgen
│ └── en_US
│ ├── book.xml
│ ├── docgen-help
│ └── editors-readme.txt
│ ├── docgen-misc
│ ├── copyrightComment.txt
│ └── googleAnalytics.html
│ ├── docgen-originals
│ └── figures
│ │ ├── model2sketch_with_alpha.png
│ │ ├── odg-convert-howto.txt
│ │ ├── overview.odg
│ │ └── tree_with_alpha.png
│ ├── docgen.cjson
│ ├── favicon.png
│ ├── figures
│ ├── model2sketch.png
│ ├── overview.png
│ └── tree.png
│ └── logo.png
├── freemarker-test-utils
└── src
│ └── main
│ ├── java
│ └── freemarker
│ │ ├── core
│ │ └── ASTPrinter.java
│ │ ├── ext
│ │ └── beans
│ │ │ ├── AlphabeticalMethodSorter.java
│ │ │ ├── BeansWrapperDesc2003020.java
│ │ │ ├── BeansWrapperDesc2003021.java
│ │ │ ├── BeansWrapperInc2003020.java
│ │ │ ├── BeansWrapperInc2003021.java
│ │ │ ├── BeansWrapperWithShortedMethods.java
│ │ │ ├── DefaultObjectWrapperDesc2003020.java
│ │ │ ├── DefaultObjectWrapperDesc2003021.java
│ │ │ ├── DefaultObjectWrapperDesc2003022.java
│ │ │ ├── DefaultObjectWrapperInc2003020.java
│ │ │ ├── DefaultObjectWrapperInc2003021.java
│ │ │ ├── DefaultObjectWrapperInc2003022.java
│ │ │ ├── DefaultObjectWrapperWithSortedMethods.java
│ │ │ ├── Java7MembersOnlyBeansWrapper.java
│ │ │ └── RationalNumber.java
│ │ └── test
│ │ ├── CopyrightCommentRemoverTemplateLoader.java
│ │ ├── ResourcesExtractor.java
│ │ ├── TemplateTest.java
│ │ ├── hamcerst
│ │ ├── Matchers.java
│ │ └── StringContainsIgnoringCase.java
│ │ ├── package-info.java
│ │ ├── templatesuite
│ │ └── models
│ │ │ ├── AllTemplateModels.java
│ │ │ ├── BeanTestClass.java
│ │ │ ├── BeanTestInterface.java
│ │ │ ├── BeanTestSuperclass.java
│ │ │ ├── BooleanAndScalarModel.java
│ │ │ ├── BooleanAndStringTemplateModel.java
│ │ │ ├── BooleanHash1.java
│ │ │ ├── BooleanHash2.java
│ │ │ ├── BooleanList1.java
│ │ │ ├── BooleanList2.java
│ │ │ ├── BooleanVsStringMethods.java
│ │ │ ├── EnumTestClass.java
│ │ │ ├── ExceptionModel.java
│ │ │ ├── HashAndScalarModel.java
│ │ │ ├── JavaObjectInfo.java
│ │ │ ├── LegacyList.java
│ │ │ ├── Listables.java
│ │ │ ├── MultiModel1.java
│ │ │ ├── MultiModel2.java
│ │ │ ├── MultiModel3.java
│ │ │ ├── MultiModel4.java
│ │ │ ├── MultiModel5.java
│ │ │ ├── NewTestModel.java
│ │ │ ├── NewTestModel2.java
│ │ │ ├── NumberAndStringModel.java
│ │ │ ├── OverloadedConstructor.java
│ │ │ ├── OverloadedMethods.java
│ │ │ ├── OverloadedMethods2.java
│ │ │ ├── SimpleTestMethod.java
│ │ │ ├── TransformHashWrapper.java
│ │ │ ├── TransformMethodWrapper1.java
│ │ │ ├── TransformMethodWrapper2.java
│ │ │ ├── TransformModel1.java
│ │ │ └── VarArgTestModel.java
│ │ └── utility
│ │ ├── AssertDirective.java
│ │ ├── AssertEqualsDirective.java
│ │ ├── AssertFailsDirective.java
│ │ ├── AssertationFailedInTemplateException.java
│ │ ├── BadParameterTypeException.java
│ │ ├── FileTestCase.java
│ │ ├── MissingRequiredParameterException.java
│ │ ├── NoOutputDirective.java
│ │ ├── ParameterException.java
│ │ ├── TestUtil.java
│ │ └── UnsupportedParameterException.java
│ └── resources
│ └── logback-test.xml
├── gradle.properties
├── gradle
├── repositories.gradle.kts
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── osgi.bnd
├── rat-excludes
├── settings.gradle.kts
└── src
├── dist
├── bin
│ ├── LICENSE
│ ├── documentation
│ │ └── index.html
│ └── rat-excludes
├── jar
│ └── META-INF
│ │ └── LICENSE
└── javadoc
│ └── META-INF
│ └── LICENSE
└── ide-settings
├── Eclipse
└── Formatter-profile-FreeMarker.xml
└── IntelliJ-IDEA
├── Editor-Inspections-FreeMarker.xml
└── Java-code-style-FreeMarker.xml
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | * text=auto
19 |
--------------------------------------------------------------------------------
/NOTICE:
--------------------------------------------------------------------------------
1 | Apache FreeMarker
2 | Copyright 2015-2018 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/RELEASE-NOTES:
--------------------------------------------------------------------------------
1 | Where to find the change log:
2 |
3 | - Online (for stable releases only):
4 | https://freemarker.apache.org/docs/app_versions.html
5 |
6 | - Offline:
7 | In the binary release, open documentation/index.html, click "Manual", then
8 | find "Version history" in table of contents.
9 |
--------------------------------------------------------------------------------
/buildSrc/build.gradle.kts:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | plugins {
21 | `kotlin-dsl`
22 | }
23 |
24 | dependencies {
25 | implementation(gradleApi())
26 |
27 | implementation("org.apache.freemarker.docgen:freemarker-docgen-core:0.0.3-SNAPSHOT")
28 | implementation("org.nosphere.apache:creadur-rat-gradle:0.8.1")
29 | }
30 |
--------------------------------------------------------------------------------
/buildSrc/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | rootProject.name = "freemarker-buildSrc"
21 |
22 | apply(from = rootDir.toPath().parent.resolve("gradle").resolve("repositories.gradle.kts"))
23 |
--------------------------------------------------------------------------------
/buildSrc/src/main/kotlin/freemarker/build/FreemarkerPathExtensions.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.build
21 |
22 | import java.nio.file.Path
23 |
24 | fun Path.withChildren(children: List): Path {
25 | return children.fold(this) { parent, child -> parent.resolve(child) }
26 | }
27 |
--------------------------------------------------------------------------------
/buildSrc/src/main/kotlin/freemarker/build/FreemarkerStringExtensions.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.build
21 |
22 | private val CAMEL_HUMP = "(?<=[A-Za-z0-9])[A-Z]".toRegex()
23 |
24 | fun String.camelCaseToDashed(): String =
25 | replace(CAMEL_HUMP) { "-" + it.value.replaceFirstChar(Char::lowercaseChar) }
26 |
--------------------------------------------------------------------------------
/buildSrc/src/main/resources/META-INF/gradle-plugins/freemarker-root.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | implementation-class=freemarker.build.FreemarkerRootPlugin
19 |
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/cache/TemplateSourceMatcher.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package freemarker.cache;
20 |
21 | import java.io.IOException;
22 |
23 | /**
24 | * @since 2.3.24
25 | */
26 | public abstract class TemplateSourceMatcher {
27 |
28 | abstract boolean matches(String sourceName, Object templateSource) throws IOException;
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/core/BuiltInBannedWhenForcedAutoEscaping.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package freemarker.core;
20 |
21 | /**
22 | * A built-in whose usage is banned when auto-escaping is in the "forced" state.
23 | * This is just a marker; the actual checking is in {@code FTL.jj}.
24 | */
25 | interface BuiltInBannedWhenForcedAutoEscaping {}
26 |
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/core/SpecialBuiltIn.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package freemarker.core;
20 |
21 |
22 | /**
23 | * Marker class for built-ins that has special treatment during parsing.
24 | */
25 | abstract class SpecialBuiltIn extends BuiltIn {
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/core/SuppressFBWarnings.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.core;
21 |
22 | import java.lang.annotation.Retention;
23 | import java.lang.annotation.RetentionPolicy;
24 |
25 | @Retention(RetentionPolicy.CLASS)
26 | @interface SuppressFBWarnings {
27 | String[] value() default {};
28 | String justification() default "";
29 | }
30 |
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/core/TemplateValueFormatFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package freemarker.core;
20 |
21 | /**
22 | * Superclass of all format factories.
23 | *
24 | * @since 2.3.24
25 | */
26 | public abstract class TemplateValueFormatFactory {
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/core/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * The seldom used or advanced parts of the fundamental FreeMarker API, compared to {@link freemarker.template}.
22 | * This package also encloses FreeMarker's core parsing/rendering functionality.
23 | */
24 | package freemarker.core;
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/debug/impl/SuppressFBWarnings.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.debug.impl;
21 |
22 | import java.lang.annotation.Retention;
23 | import java.lang.annotation.RetentionPolicy;
24 |
25 | @Retention(RetentionPolicy.CLASS)
26 | @interface SuppressFBWarnings {
27 | String[] value() default {};
28 | String justification() default "";
29 | }
30 |
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/debug/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Debugging API; experimental status, might change!
22 | * This is to support debugging in IDE-s. If you are working on a client for this, don't hesitate to contact us!
23 | */
24 | package freemarker.debug;
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/ext/beans/MaybeEmptyCallableMemberDescriptor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.ext.beans;
21 |
22 | /**
23 | * Superclass of the {@link EmptyCallableMemberDescriptor} and {@link CallableMemberDescriptor} "case classes".
24 | */
25 | abstract class MaybeEmptyCallableMemberDescriptor { }
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/ext/beans/MaybeEmptyMemberAndArguments.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.ext.beans;
21 |
22 | abstract class MaybeEmptyMemberAndArguments { }
23 |
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/ext/beans/SuppressFBWarnings.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.ext.beans;
21 |
22 | import java.lang.annotation.Retention;
23 | import java.lang.annotation.RetentionPolicy;
24 |
25 | @Retention(RetentionPolicy.CLASS)
26 | @interface SuppressFBWarnings {
27 | String[] value() default {};
28 | String justification() default "";
29 | }
30 |
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/ext/jdom/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Deprecated, use W3C DOM ({@link freemarker.ext.dom}) instead;
22 | * Exposes JDOM XML nodes to templates.
23 | */
24 | package freemarker.ext.jdom;
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/ext/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Extensions to FreeMarker's core functionality.
22 | */
23 | package freemarker.ext;
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/ext/rhino/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Exposes Rhino (ECMAScript) objects to templates.
22 | */
23 | package freemarker.ext.rhino;
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/ext/util/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Various classes used by {@code freemarker.ext} but might be useful outside it too.
22 | */
23 | package freemarker.ext.util;
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/ext/xml/NodeOperator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.ext.xml;
21 |
22 | import java.util.List;
23 |
24 | /**
25 | */
26 | interface NodeOperator {
27 | void process(Object node, String localName, String namespaceUri, List result);
28 | }
29 |
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/ext/xml/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Deprecated, use W3C DOM with {@link freemarker.ext.dom} instead;
22 | * Exposes XML from DOM, dom4j or JDOM nodes, uniformly.
23 | */
24 | package freemarker.ext.xml;
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/log/LoggerFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.log;
21 |
22 | interface LoggerFactory {
23 | public Logger getLogger(String category);
24 | }
25 |
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/log/_SLF4JLoggerFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.log;
21 |
22 |
23 | /**
24 | * Don't use this class; it's only public to work around Google App Engine Java
25 | * compliance issues. FreeMarker developers only: treat this class as package-visible.
26 | */
27 | public class _SLF4JLoggerFactory extends SLF4JLoggerFactory {
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/log/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Logging facility; dispatches FreeMarker log messages to the chosen logger library.
22 | */
23 | package freemarker.log;
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/template/SerializableTemplateBooleanModel.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.template;
21 |
22 | import java.io.Serializable;
23 |
24 | interface SerializableTemplateBooleanModel extends TemplateBooleanModel, Serializable {};
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/template/SuppressFBWarnings.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.template;
21 |
22 | import java.lang.annotation.Retention;
23 | import java.lang.annotation.RetentionPolicy;
24 |
25 | @Retention(RetentionPolicy.CLASS)
26 | @interface SuppressFBWarnings {
27 | String[] value() default {};
28 | String justification() default "";
29 | }
30 |
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/template/utility/ObjectFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.template.utility;
21 |
22 | /**
23 | * Used for the trivial cases of the factory pattern. Has a generic type argument since 2.3.24.
24 | *
25 | * @since 2.3.22
26 | */
27 | public interface ObjectFactory {
28 |
29 | T createObject() throws Exception;
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/freemarker-core/src/main/java/freemarker/template/utility/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Various classes used by core FreeMarker code but might be useful outside of it too.
22 | */
23 | package freemarker.template.utility;
--------------------------------------------------------------------------------
/freemarker-core/src/main/misc/overloadedNumberRules/prices.ods:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/freemarker-core/src/main/misc/overloadedNumberRules/prices.ods
--------------------------------------------------------------------------------
/freemarker-core/src/test/java/freemarker/ext/beans/BridgeMethodsBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package freemarker.ext.beans;
20 |
21 | public class BridgeMethodsBean extends BridgeMethodsBeanBase {
22 |
23 | static final String M1_RETURN_VALUE = "m1ReturnValue";
24 |
25 | @Override
26 | public String m1() {
27 | return M1_RETURN_VALUE;
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/java/freemarker/ext/beans/BridgeMethodsBeanBase.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package freemarker.ext.beans;
20 |
21 | public abstract class BridgeMethodsBeanBase {
22 |
23 | public abstract T m1();
24 |
25 | public T m2() {
26 | return null;
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/java/freemarker/ext/beans/Java8BridgeMethodsWithDefaultMethodBean2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package freemarker.ext.beans;
20 |
21 | public class Java8BridgeMethodsWithDefaultMethodBean2 implements Java8BridgeMethodsWithDefaultMethodBeanBase2 {
22 | // All inherited
23 | }
24 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/java/freemarker/ext/beans/Java8BridgeMethodsWithDefaultMethodBeanBase.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package freemarker.ext.beans;
20 |
21 | public interface Java8BridgeMethodsWithDefaultMethodBeanBase {
22 |
23 | default T m1() {
24 | return null;
25 | }
26 |
27 | default T m2() {
28 | return null;
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/cache/test.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | dummy
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/ast-assignments.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | 1 <#assign x = 1>
20 | 2 <#assign x = 1, y = 2>
21 | 3 <#assign x = 1 in ns>
22 | 4 <#assign x = 1, y = 2 in ns>
23 | 5 <#global x = 1>
24 | 6 <#global x = 1, y = 2>
25 | <#macro m>
26 | 7 <#local x = 1>
27 | 8 <#local x = 1, y = 2>
28 | #macro>
29 | 9 <#assign a += 1, b -= 2, c *= 3, d /= 4, e %= 5, f++, g-->
30 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/ast-builtins.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${x?trim}
20 | ${x?left_pad(5)}
21 | ${x?left_pad(5, '-')}
22 | ${x?then('y', 'n')}
23 | ${x?switch(1, 11, 2, 22, 33)}
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/ast-lambda.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | 1 ${x?filter(x -> !x)}
20 | 2 ${x?filter((x) -> !x)}
21 | 3 ${x?filter((x) -> (!x))}
22 | 4 ${x?filter(x -> x + 1 == 2 || x / 2 == 4)}
23 | 5 ${x?filter(x -> x?filter(y -> y == 1)?hasContent)}
24 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/ast-mixedcontentsimplifications.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#if true>
20 | <#if true>
21 | #if>
22 | <#if true>
23 | text
24 | #if>
25 | <#if true>${x}#if>
26 | #if>
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/ast-multipleignoredchildren.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | a
20 | <#compress>#compress>
21 | b
22 | <#compress>#compress>
23 | <#compress>#compress>
24 | c
25 | <#compress>#compress>
26 | <#compress>#compress>
27 | <#compress>#compress>
28 | d
29 | <#if true>
30 | <#compress>#compress>
31 | <#compress>#compress>
32 | <#compress>#compress>
33 | #if>
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/ast-nestedignoredchildren.ast:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | #outputformat // f.c.OutputFormatBlock
20 | - value: "HTML" // f.c.StringLiteral
21 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/ast-nestedignoredchildren.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#outputFormat 'HTML'><#outputFormat 'HTML'><#outputFormat 'HTML'>#outputFormat>#outputFormat>#outputFormat>
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/ast-strlitinterpolation.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | 1. <@m x='${e1}' y='$\\{e2}' />
20 | 2. ${'a${x}b${x}c'}
21 | 3. ${'${x}b'}
22 | 4. ${'a${x}'}
23 | 5. ${'${x}#{y}'}
24 | 6. ${'a b ${x} c d'}
25 | 7. ${'${x} a b ${y} c$d'}
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/ast-whitespacestripping.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 |
20 |
21 | <#assign xs = []>
22 |
23 | <#list x as xs>
24 | ${x}
25 | #list>
26 |
27 | <#assign a = 1>
28 | <#assign b = 1>
29 |
30 | <@b>
31 | x
32 | @b>
33 |
34 | <@c />
35 |
36 | <@d>@d>
37 |
38 | a
39 | <#-- comment -->
40 | b
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/cano-builtins.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${x?trim}
20 | ${x?left_pad(5)}
21 | ${x?left_pad(5, '-')}
22 | ${x?then('y', 'n')}
23 | ${x?switch(1, 11, 2, 22, 33)}
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/cano-builtins.ftl.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | ${x?trim}
20 | ${x?left_pad(5)}
21 | ${x?left_pad(5, "-")}
22 | ${x?then("y", "n")}
23 | ${x?switch(1, 11, 2, 22, 33)}
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/cano-strlitinterpolation.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <@m x='${e1 + "a\'b${x}"}#{x; M2}' y='$\{e2}' />
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/cano-strlitinterpolation.ftl.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | <@m x="${e1 + \"a'b$\{x}\"}#{x ; m0M2}" y="$\{e2}"/>
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/encodingOverride-ISO-8859-1.ftl:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/freemarker-core/src/test/resources/freemarker/core/encodingOverride-ISO-8859-1.ftl
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/core/encodingOverride-UTF-8.ftl:
--------------------------------------------------------------------------------
1 | <#ftl encoding="UTF-8">
2 | <#--
3 | Licensed to the Apache Software Foundation (ASF) under one
4 | or more contributor license agreements. See the NOTICE file
5 | distributed with this work for additional information
6 | regarding copyright ownership. The ASF licenses this file
7 | to you under the Apache License, Version 2.0 (the
8 | "License"); you may not use this file except in compliance
9 | with the License. You may obtain a copy of the License at
10 |
11 | http://www.apache.org/licenses/LICENSE-2.0
12 |
13 | Unless required by applicable law or agreed to in writing,
14 | software distributed under the License is distributed on an
15 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | KIND, either express or implied. See the License for the
17 | specific language governing permissions and limitations
18 | under the License.
19 | -->
20 | Béka
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AbsoluteTemplateNameBIExample-foo.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | /foo
20 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AutoEscapingExample-capture.ftlh:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#assign captured>Test#assign>
20 | Just a string: ${"Test"}
21 | Captured output: ${captured}
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AutoEscapingExample-capture.ftlh.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | Just a string: <b>Test</b>
20 | Captured output: Test
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AutoEscapingExample-convert.ftlh.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | HTML: Foo's bar {}
20 | XML: Foo's bar {}
21 | RTF: Foo's bar \{\}
22 |
23 | HTML: Test
24 | XML: Failed
25 | RTF: Failed
26 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AutoEscapingExample-convert2.ftl.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | HTML:
Test
20 | XML:
Test
21 | RTF: \par Test
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <@infoBox "Foo & bar" />
20 | <@infoBox "Foo bar"?no_esc />
21 |
22 | <#macro infoBox message>
23 |
24 | ${message}
25 |
26 | #macro>
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | Foo & bar
21 |
22 |
23 | Foo bar
24 |
25 |
26 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AutoEscapingExample-markup.ftlh:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#assign markupOutput1="Test"?no_esc>
20 | <#assign markupOutput2="Foo & bar"?esc>
21 |
22 | As expected:
23 | ${markupOutput1}
24 | ${markupOutput2}
25 |
26 | Double escaping:
27 | ${markupOutput1?markup_string}
28 | ${markupOutput2?markup_string}
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AutoEscapingExample-markup.ftlh.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | As expected:
21 | Test
22 | Foo & bar
23 |
24 | Double escaping:
25 | <b>Test</b>
26 | Foo & bar
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AutoEscapingExample-stringConcat.ftlh:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${""?no_esc + "Foo & bar" + "
"?no_esc}
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AutoEscapingExample-stringConcat.ftlh.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | Foo & bar
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral.ftlh:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#assign s = "Foo & bar">
20 | ${s}
21 | ${"${s} & baz"}
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral.ftlh.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | Foo & bar
20 | Foo & bar & baz
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral2.ftlh:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#-- Markup output value created by escaping plain text: -->
20 | <#assign mo1 = "Foo & bar"?esc>
21 | <#-- Markup output value created outherwise: -->
22 | <#assign mo2 = "Foo"?no_esc>
23 |
24 | ${"${mo1} baz"}
25 | ${"${mo2} baz"}
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral2.ftlh.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | Foo & bar baz
21 |
Foo baz
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/ConfigureOutputFormatExamples1.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | templateConfigurations = \
19 | ConditionalTemplateConfigurationFactory( \
20 | PathGlobMatcher("mail/**"), \
21 | TemplateConfiguration(outputFormat = HTMLOutputFormat()))
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/CustomFormatsExample-alias1.ftlh:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${p?string.@price}
20 | ${w?string.@weight}
21 | ${fd?string.@fileDate}
22 | ${let?datetime?string.@logEventTime}
23 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/CustomFormatsExample-alias1.ftlh.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | 10,000.00
20 | 10.31
21 | 23/Dec/15 10:09 PM
22 | 2015-12-23T21:09:04.213Z
23 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/CustomFormatsExample-alias2.ftlh:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${10?string.@oct}
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/CustomFormatsExample-alias2.ftlh.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | 12
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/CustomFormatsExample-modelAware.ftlh:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${10.12356}
20 | ${weight}
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/CustomFormatsExample-modelAware.ftlh.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | 10.1236
20 | 1.5 kg
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/TemplateConfigurationExamples1.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | templateConfigurations = \
19 | ConditionalTemplateConfigurationFactory( \
20 | FileExtensionMatcher("xml"), \
21 | TemplateConfiguration( \
22 | encoding = "utf-8", \
23 | outputFormat = XMLOutputFormat() \
24 | ) \
25 | )
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/WithArgsExamples-usingWithArgsSpecialVariable.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#macro m1 a b c>
20 | m1 does things with ${a}, ${b}, ${c}
21 | #macro>
22 |
23 | <#macro m2 a b c>
24 | m2 does things with ${a}, ${b}, ${c}
25 | Delegate to m1:
26 | <@m1?with_args(.args) />
27 | #macro>
28 |
29 | <@m2 a=1 b=2 c=3 />
30 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/WithArgsExamples-usingWithArgsSpecialVariable.ftl.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | m2 does things with 1, 2, 3
21 | Delegate to m1:
22 | m1 does things with 1, 2, 3
23 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/dir/AbsoluteTemplateNameBIExample-foo.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | /dir/foo
20 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/dir/AbsoluteTemplateNameBIExample-main.ftl.out:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | (:
21 | /dir/foo
22 | (:
23 | /foo
24 | (:
25 | /foo
26 | ):
27 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/manual/test.ftlh:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 |
20 |
21 | Welcome!
22 |
23 |
24 | Welcome ${user}!
25 | Our latest product:
26 | ${latestProduct.name}!
27 |
28 |
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/template/toCache1.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | Template 1
--------------------------------------------------------------------------------
/freemarker-core/src/test/resources/freemarker/template/toCache2.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | Template 2
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/java/freemarker/ext/jsp/webapps/config/WebappLocalFreemarkerServlet.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package freemarker.ext.jsp.webapps.config;
20 |
21 | import freemarker.ext.servlet.FreemarkerServlet;
22 |
23 | public class WebappLocalFreemarkerServlet extends FreemarkerServlet {
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/templates/classpath-test.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | In classpath-test.ftl
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/basic/elFunctionsTagNameClash.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#assign t = JspTaglibs["http://freemarker.org/test/taglibs/el-functions-tag-name-clash"]>
20 |
21 | ${t.foo("abc")}
22 | <@t.foo />
23 |
24 | ${t.bar("abc")}
25 | <@t.bar>abc@t.bar>
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/basic/elFunctionsTagNameClash.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | --%>
19 | <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
20 | <%@ taglib prefix="t" uri="http://freemarker.org/test/taglibs/el-functions-tag-name-clash" %>
21 |
22 | ${t:foo("abc")}
23 |
24 |
25 | ${t:bar("abc")}
26 | abc
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/basic/trivial.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${n + 1}
20 |
21 | <#-- Instead of JSTL: -->
22 |
23 | <#if t>
24 | True
25 | #if>
26 |
27 | <#if n == 123>
28 | Do this
29 | <#else>
30 | Do that
31 | #if>
32 |
33 | <#list ls as i>
34 | - ${i}
35 | #list>
36 |
37 | [${" foo "?trim}]
38 |
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/classes/sub/test.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | from /WEB-INF/classes/sub
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/classes/test.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | from /WEB-INF/classes
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/lib/templates.jar/sub/test2.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | from WEB-INF/lib/templates.jar/sub
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/templates/test.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | from /WEB-INF/templates
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/config/test.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | from /
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/errors/CONTENTS.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | // Only the files listed here will be part of the tested Web application deployment!
21 |
22 | failing-parsetime.ftlnv
23 | failing-parsetime.jsp
24 | failing-runtime.ftl
25 | failing-runtime.jsp
26 | not-failing.ftl
27 |
28 | WEB-INF/web.xml
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/errors/failing-parsetime.ftlnv:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 |
20 | ${'x'?no_such_builtin}
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/errors/failing-parsetime.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | --%>
19 | ${
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/errors/failing-runtime.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#--
20 | <#attempt>
21 | ${noSuchVariableInAttempt}
22 | <#recover>
23 | foo
24 | #attempt>
25 | -->
26 | ${noSuchVariable}
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/errors/failing-runtime.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | --%>
19 | <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
20 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
21 |
22 |
23 | ${i}
24 |
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/errors/not-failing.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | foo
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/multipleLoaders/CONTENTS.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | // Only the files listed here will be part of the tested Web application deployment!
21 |
22 | WEB-INF/web.xml
23 |
24 | WEB-INF/templates/test.ftl
25 |
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/multipleLoaders/WEB-INF/templates/test.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | In test.ftl
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/WEB-INF/expected/subdir/test-rel.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | Executed TestSimpleTag2
20 | Executed TestSimpleTag2
--------------------------------------------------------------------------------
/freemarker-javax-servlet/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/subdir/test-rel.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <@JspTaglibs["taglib"].simpletag />
20 | <@JspTaglibs["taglib"].simpletag />
21 |
--------------------------------------------------------------------------------
/freemarker-jython20/src/main/java/freemarker/ext/ant/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Ant task to transform XML files
22 | * with a template; a more powerful alternative is FMPP.
23 | */
24 | package freemarker.ext.ant;
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/java/freemarker/core/subpkg/PackageVisibleAll.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.core.subpkg;
21 |
22 | class PackageVisibleAll {
23 |
24 | PackageVisibleAll() {}
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/java/freemarker/core/subpkg/PackageVisibleAllWithBuilder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.core.subpkg;
21 |
22 | class PackageVisibleAllWithBuilder {
23 |
24 | PackageVisibleAllWithBuilder() {}
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/java/freemarker/core/subpkg/PackageVisibleAllWithBuilderBuilder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.core.subpkg;
21 |
22 | public class PackageVisibleAllWithBuilderBuilder {
23 |
24 | public PackageVisibleAllWithBuilder build() {
25 | return new PackageVisibleAllWithBuilder();
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/java/freemarker/core/subpkg/PackageVisibleWithPublicConstructor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.core.subpkg;
21 |
22 | class PackageVisibleWithPublicConstructor {
23 |
24 | public PackageVisibleWithPublicConstructor() {
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/java/freemarker/core/subpkg/PublicAll.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.core.subpkg;
21 |
22 | public class PublicAll {
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/java/freemarker/core/subpkg/PublicWithPackageVisibleConstructor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.core.subpkg;
21 |
22 | public class PublicWithPackageVisibleConstructor {
23 |
24 | PublicWithPackageVisibleConstructor() { }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/boolean-formatting.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | Y Y Y
20 | N N N
21 | y y y
22 | n n n
23 | y y y
24 | n n n
25 | str:n str:n
26 | nein ja
27 | y y
28 | theStringValue theStringValue
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/charset-in-header.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 |
21 |
22 |
23 | éáőű
24 | õÕûÛ
25 | őŐűŰ
26 |
27 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/comment.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 |
21 | FreeMarker: Comment Test
22 |
23 |
24 | Message exists!
25 |
26 |
27 | a b
28 | a b
29 |
30 | 6
31 | 7
32 | 8
33 |
34 |
35 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/default-xmlns.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | No NS = No NS
20 | x NS = x NS
21 | y NS = y NS
22 | x NS = x NS
23 |
24 | true
25 |
26 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/default.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | foo
20 |
21 | luck
22 |
23 |
24 | 0
25 |
26 | UNDEFINED is undefined.
27 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/exception3.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | Template Compilation Error: Identifier expected at line 10.
21 |
22 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/helloworld.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 |
21 | FreeMarker: Exec Model Test
22 |
23 |
24 |
25 | A simple test follows:
26 |
27 | Hello, world!
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/identifier-non-ascii.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | Korean Keyboard
20 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/interpret.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | abcdef
20 | abcdef
21 | abcdef
22 |
23 | M
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/lastcharacter.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 |
21 | FreeMarker: Last Character Test
22 |
23 |
24 |
25 | A simple test follows:
26 |
27 | 13
28 |
29 | ELLO, WORLD!
30 |
31 | message: Hello, Worl
32 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/listhashliteral-ici-2.3.20.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | KVPs:
20 | a = 1
21 | b = 2
22 | a = 3
23 |
24 | Keys:
25 | a
26 | b
27 | a
28 |
29 | Values:
30 | 1
31 | 2
32 | 3
33 |
34 | KVPs:
35 |
36 | Keys:
37 |
38 | Values:
39 |
40 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/listhashliteral-ici-2.3.21.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | KVPs:
20 | a = 3
21 | b = 2
22 |
23 | Keys:
24 | a
25 | b
26 |
27 | Values:
28 | 3
29 | 2
30 |
31 | KVPs:
32 |
33 | Keys:
34 |
35 | Values:
36 |
37 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/localization.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 |
21 | FreeMarker: Localization Test
22 |
23 |
24 |
25 | A simple test follows:
26 |
27 | Hello, world!
28 |
29 | G'day, mate!
30 |
31 |
32 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/logging.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 |
21 | FreeMarker: Logging Test
22 |
23 |
24 |
25 | A simple test follows:
26 |
27 | ERROR [freemarker.template.Template]: message is not a TemplateHashModel, it's a freemarker.template.SimpleScalar.
28 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/macros-return.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | m{
20 | m{
21 | m{
22 | b{
23 | m:b{
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/macros2.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | 1 1
20 | 2 2
21 | 4
22 | m3 with d="4" Failed!
23 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/nested.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | test 3/1: undefined undefined undefined
20 | test 3/2: undefined undefined undefined
21 | test 3/3: undefined undefined undefined
22 |
23 | test 3/1: Y X Count 1
24 | test 3/2: Y X Count 2
25 | test 3/3: Y X Count 3
26 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/new-allowsnothing.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | fails
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/new-defaultresolver.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | works
20 | works
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/new-optin.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | works
20 | fails
21 |
22 | works
23 | works
24 |
25 | works
26 | fails
27 |
28 | works
29 | fails
30 |
31 | works
32 | works
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/new-safer.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | works
20 | fails
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/new-unrestricted.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | works
20 | works
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/newlines1.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 |
21 | FreeMarker: Newlines Test
22 |
23 |
24 | A simple test follows:
25 |
26 | Hello, world!
27 |
28 |
29 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/newlines2.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 |
21 | FreeMarker: Newlines the Second Test
22 |
23 |
24 | A simple test follows:
25 |
26 | Hello, world!
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/number-format.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | 1
20 | 1
21 | 1 234 567,89
22 | 1234567.886
23 | 1,00
24 | 1
25 | 1234567,89
26 | 1234567.886
27 | 1
28 | 100000.5
29 | 100000.5
30 | 100 000,5
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/output-encoding1.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | Output charset: UTF-8
20 | URL escaping charset: undefined
21 |
22 | a%FE%FF%00%2F%00%25b
23 | a%FE%FF%00%2F%00%25b
24 | a%2F%25b
25 | a%2F%25b
26 | a%FE%FF%00%2F%00%25b
27 | a%2F%25b
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/output-encoding2.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/output-encoding2.txt
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/output-encoding3.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | Output charset: ISO-8859-1
20 | URL escaping charset: UTF-16
21 |
22 | UTF-16: a%FE%FF%00%2F%00%25b
23 | ISO-8859-1: a%2F%25b
24 | UTF-16: a%FE%FF%00%2F%00%25b
25 | ISO-8859-1: a%2F%25b
26 | ISO-8859-1: a%2F%25b
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/specialvars.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | en == en
20 | en_US == en_US
21 | GMT+01:00 == GMT+01:00
22 | utf-8 == utf-8
23 | specialvars.ftl == specialvars.ftl
24 | iso-8859-1 == iso-8859-1
25 | x == x
26 | true == true
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/strictinheader.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | 1
20 |
21 | 34
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/stringbimethods.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | 3.00
20 | 3.00
21 | 01:02:03.000
22 | 01:02:03.000
23 | ---
24 | de
25 | true false
26 | yes no
27 | igen nem
28 | 0.0 1.0
29 | true true
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/wstrip-in-header.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | a
20 |
21 | b
22 | a
23 | b
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/wstripping.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | a
20 | b
21 | c
22 | d
23 | e2
24 | f
25 | g
26 | x
27 | x
28 | x
29 | y
30 | y
31 | x
32 | y
33 | x
34 | y
35 | a
36 | x
37 | b
38 | x
39 | c
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/xml-fragment.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | b = b
20 | @document = @document
21 | @document = @document
22 |
23 | C<>&"']]> = C<>&"']]>
24 |
25 | C<>&"']]>
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/expected/xmlns5.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | No NS = No NS
20 | x NS = x NS
21 | y NS = y NS
22 | x NS = x NS
23 | No NS = No NS
24 | - = -
25 | - = -
26 | - = -
27 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/models/BeansTestResources.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | message=Message
19 | format={0,date,yyyy-MM-dd}
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/models/defaultxmlns1.xml:
--------------------------------------------------------------------------------
1 |
19 |
20 | No NS
21 | x NS
22 | y NS
23 | x NS
24 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/models/xmlfragment.xml:
--------------------------------------------------------------------------------
1 |
19 | C<>&"']]>
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header.ftl:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header.ftl
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header_inc1.ftl:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header_inc1.ftl
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header_inc2.ftl:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header_inc2.ftl
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi-ici-2.3.21.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#include "dateformat-iso-bi-common.ftl">
20 |
21 | <#setting time_zone="GMT+02">
22 | <@assertEquals actual=sqlTime?iso_local expected="22:38:05" />
23 | <@assertEquals actual=sqlTime?iso_utc expected="20:38:05" />
24 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#include "dateformat-iso-bi-common.ftl">
20 |
21 | <#setting time_zone="GMT+02">
22 | <@assertEquals actual=sqlTime?iso_local expected="22:38:05+02:00" />
23 | <@assertEquals actual=sqlTime?iso_utc expected="20:38:05Z" />
24 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/default.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${UNDEFINED!"foo"}
20 |
21 | <#assign duck = (FOO.BAR)!"luck">
22 | ${duck}
23 |
24 | <#list UNDEFINED![] as item>
25 | ${item}
26 | #list>
27 |
28 | ${UNDEFINED![]?size}
29 |
30 | <#if UNDEFINED??>
31 | UNDEFINED is defined.
32 | <#else>
33 | UNDEFINED is undefined.
34 | #if>
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/exception.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 |
20 |
21 | FreeMarker: Exception Test
22 |
23 |
24 |
25 | A simple test follows:
26 |
27 | ${message}
28 | ${test}
29 |
30 |
31 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/exception2.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 |
20 |
21 | FreeMarker: Exception Test
22 |
23 |
24 |
25 | A simple test follows:
26 |
27 | ${message}
28 | ${test}
29 |
30 |
31 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/exception3.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 |
20 |
21 | FreeMarker: Exception Test
22 |
23 |
24 |
25 | A simple test follows:
26 |
27 | ${message}
28 | ${%@#$test}
29 |
30 |
31 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/helloworld.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 |
20 |
21 | FreeMarker: Exec Model Test
22 |
23 |
24 |
25 | A simple test follows:
26 |
27 | ${exec( "java freemarker.test.HelloWorld" )}
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/identifier-non-ascii.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#macro árvíztűrőTükörfúrógép טֶקסט>${טֶקסט}#macro>
20 | <#assign 한국어_키보드="Korean Keyboard">
21 | <@árvíztűrőTükörfúrógép 한국어_키보드 />
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/import_lib.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#macro test foo>
20 | Test ${foo}.
21 | Email: ${mail}
22 | <#if .main.mail?exists>
23 | Email in the root: ${.main.mail}
24 | #if>
25 | #macro>
26 |
27 | <#function doubleUp foo>
28 | <#return foo+foo>
29 | #function>
30 |
31 | <#assign mail = "jsmith@acme.com">
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/include2-included-encoding.ftl:
--------------------------------------------------------------------------------
1 | <#ftl encoding='utf-8'>
2 | <#--
3 | Licensed to the Apache Software Foundation (ASF) under one
4 | or more contributor license agreements. See the NOTICE file
5 | distributed with this work for additional information
6 | regarding copyright ownership. The ASF licenses this file
7 | to you under the Apache License, Version 2.0 (the
8 | "License"); you may not use this file except in compliance
9 | with the License. You may obtain a copy of the License at
10 |
11 | http://www.apache.org/licenses/LICENSE-2.0
12 |
13 | Unless required by applicable law or agreed to in writing,
14 | software distributed under the License is distributed on an
15 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | KIND, either express or implied. See the License for the
17 | specific language governing permissions and limitations
18 | under the License.
19 | -->
20 | ${'A'} próba
21 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/include2-included.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${'A'} próba
20 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/lastcharacter.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 |
20 |
21 | FreeMarker: Last Character Test
22 |
23 |
24 |
25 | A simple test follows:
26 |
27 | #{message?capitalize?length}
28 |
29 | ${message [1..] ? upper_case}
30 |
31 | message: ${message ?capitalize[0..10]}
32 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/listhashliteral.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#list [ { "a": 1, "b": 2, "a": 3 }, { } ] as h>
20 | KVPs:
21 | <#list h as k, v>
22 | ${k} = ${v}
23 | #list>
24 |
25 | Keys:
26 | <#list h?keys as k>
27 | ${k}
28 | #list>
29 |
30 | Values:
31 | <#list h?values as v>
32 | ${v}
33 | #list>
34 |
35 | #list>
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/localization.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 |
20 |
21 | FreeMarker: Localization Test
22 |
23 |
24 |
25 | A simple test follows:
26 |
27 | ${message}
28 |
29 | Hello, in the default language.
30 |
31 |
32 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/localization_en.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 |
20 |
21 | FreeMarker: Localization Test
22 |
23 |
24 |
25 | A simple test follows:
26 |
27 | ${message}
28 |
29 | Hello, in the English language.
30 |
31 |
32 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/localization_en_AU.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 |
20 |
21 | FreeMarker: Localization Test
22 |
23 |
24 |
25 | A simple test follows:
26 |
27 | ${message}
28 |
29 | G'day, mate!
30 |
31 |
32 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/nestedinclude.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#assign nestedMessage = "I'm here, mon!">
20 | ${.main.bar}
21 | <#-- ${.root.message} -->
22 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/new-allowsnothing.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#attempt>
20 | ${"freemarker.test.templatesuite.models.NewTestModel"?new("works")}
21 | <#recover>
22 | fails
23 | #attempt>
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/new-defaultresolver.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${"freemarker.test.templatesuite.models.NewTestModel"?new("works")}
20 | <#attempt>
21 | ${"freemarker.template.utility.ObjectConstructor"?new()("java.lang.String", "works")}
22 | <#recover>
23 | fails
24 | #attempt>
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/new-safer.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${"freemarker.test.templatesuite.models.NewTestModel"?new("works")}
20 | <#attempt>
21 | ${"freemarker.template.utility.ObjectConstructor"?new()("java.lang.String", "works")}
22 | <#recover>
23 | fails
24 | #attempt>
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/new-unrestricted.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${"freemarker.test.templatesuite.models.NewTestModel"?new("works")}
20 | ${"freemarker.template.utility.ObjectConstructor"?new()("java.lang.String", "works")}
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/newlines1.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 |
20 |
21 | FreeMarker: Newlines Test
22 |
23 |
24 | A simple test follows:
25 |
26 | ${message}
27 |
28 |
29 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/strictinheader.ftl:
--------------------------------------------------------------------------------
1 | <#ftl strict_syntax="yes">
2 | <#--
3 | Licensed to the Apache Software Foundation (ASF) under one
4 | or more contributor license agreements. See the NOTICE file
5 | distributed with this work for additional information
6 | regarding copyright ownership. The ASF licenses this file
7 | to you under the Apache License, Version 2.0 (the
8 | "License"); you may not use this file except in compliance
9 | with the License. You may obtain a copy of the License at
10 |
11 | http://www.apache.org/licenses/LICENSE-2.0
12 |
13 | Unless required by applicable law or agreed to in writing,
14 | software distributed under the License is distributed on an
15 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | KIND, either express or implied. See the License for the
17 | specific language governing permissions and limitations
18 | under the License.
19 | -->
20 | 1
21 |
22 | <#include "strictinheader_inc1.ftl">
23 | <#include "strictinheader_inc2.ftl">
24 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/strictinheader_inc1.ftl:
--------------------------------------------------------------------------------
1 | <#ftl strict_syntax="no">
2 | <#--
3 | Licensed to the Apache Software Foundation (ASF) under one
4 | or more contributor license agreements. See the NOTICE file
5 | distributed with this work for additional information
6 | regarding copyright ownership. The ASF licenses this file
7 | to you under the Apache License, Version 2.0 (the
8 | "License"); you may not use this file except in compliance
9 | with the License. You may obtain a copy of the License at
10 |
11 | http://www.apache.org/licenses/LICENSE-2.0
12 |
13 | Unless required by applicable law or agreed to in writing,
14 | software distributed under the License is distributed on an
15 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | KIND, either express or implied. See the License for the
17 | specific language governing permissions and limitations
18 | under the License.
19 | -->
20 |
21 | ${x}
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/strictinheader_inc2.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 |
20 | ${x}
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-ici-2.3.19.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#-- Same as before... just checking against one-off bugs for 2.3.20 -->
20 | <@assertEquals actual="'"?html expected="'" />
21 | <@assertEquals actual="'"?xhtml expected="'" />
22 | <@assertEquals actual="'"?xml expected="'" />
23 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-ici-2.3.20.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <@assertEquals actual="'"?html expected="'" />
20 | <@assertEquals actual="'"?xhtml expected="'" />
21 | <@assertEquals actual="'"?xml expected="'" />
22 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/subdir/include-subdir2.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | This is include-subdir2.ftl
20 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/subdir/new-optin-2.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${"freemarker.test.templatesuite.models.NewTestModel"?new("works")}
20 | <#attempt>
21 | ${"freemarker.test.templatesuite.models.NewTestModel2"?new("works")}
22 | <#recover>
23 | fails
24 | #attempt>
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/subdir/new-optin.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${"freemarker.test.templatesuite.models.NewTestModel"?new("works")}
20 | <#attempt>
21 | ${"freemarker.test.templatesuite.models.NewTestModel2"?new("works")}
22 | <#recover>
23 | fails
24 | #attempt>
25 |
26 | <#include "new-optin-2.ftl">
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/subdir/subsub/new-optin.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${"freemarker.test.templatesuite.models.NewTestModel"?new("works")}
20 | <#attempt>
21 | ${"freemarker.test.templatesuite.models.NewTestModel2"?new("works")}
22 | <#recover>
23 | fails
24 | #attempt>
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/undefined.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | ${undefined_variable}
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/varlayers_lib.ftl:
--------------------------------------------------------------------------------
1 | <#--
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | -->
19 | <#assign x1 = .data_model.x>
20 | <#assign x2 = x>
21 | <#assign z2 = z>
22 | <#macro foo>
23 | <@.main.foo 1/>
24 | ${z} = ${z2} = ${x1} = ${.data_model.x}
25 | 5
26 | ${x} == ${.globals.x}
27 | ${y} == ${.globals.y} == ${.data_model.y?default("ERROR")}
28 | #macro>
29 |
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/wsstripinheader_inc.ftl:
--------------------------------------------------------------------------------
1 | <#ftl strip_whitespace="yes">
2 | <#--
3 | Licensed to the Apache Software Foundation (ASF) under one
4 | or more contributor license agreements. See the NOTICE file
5 | distributed with this work for additional information
6 | regarding copyright ownership. The ASF licenses this file
7 | to you under the Apache License, Version 2.0 (the
8 | "License"); you may not use this file except in compliance
9 | with the License. You may obtain a copy of the License at
10 |
11 | http://www.apache.org/licenses/LICENSE-2.0
12 |
13 | Unless required by applicable law or agreed to in writing,
14 | software distributed under the License is distributed on an
15 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | KIND, either express or implied. See the License for the
17 | specific language governing permissions and limitations
18 | under the License.
19 | -->
20 | a
21 | <#assign x = 1>
22 | b
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/wstrip-in-header.ftl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | <#ftl strip_whitespace="no">
5 | <#--
6 | Licensed to the Apache Software Foundation (ASF) under one
7 | or more contributor license agreements. See the NOTICE file
8 | distributed with this work for additional information
9 | regarding copyright ownership. The ASF licenses this file
10 | to you under the Apache License, Version 2.0 (the
11 | "License"); you may not use this file except in compliance
12 | with the License. You may obtain a copy of the License at
13 |
14 | http://www.apache.org/licenses/LICENSE-2.0
15 |
16 | Unless required by applicable law or agreed to in writing,
17 | software distributed under the License is distributed on an
18 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 | KIND, either express or implied. See the License for the
20 | specific language governing permissions and limitations
21 | under the License.
22 | -->
23 | a
24 | <#assign x = 1>
25 | b
26 | <#include "wsstripinheader_inc.ftl">
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/xml-fragment.ftl:
--------------------------------------------------------------------------------
1 | <#ftl ns_prefixes = {"n" : "http://x"}>
2 | <#--
3 | Licensed to the Apache Software Foundation (ASF) under one
4 | or more contributor license agreements. See the NOTICE file
5 | distributed with this work for additional information
6 | regarding copyright ownership. The ASF licenses this file
7 | to you under the Apache License, Version 2.0 (the
8 | "License"); you may not use this file except in compliance
9 | with the License. You may obtain a copy of the License at
10 |
11 | http://www.apache.org/licenses/LICENSE-2.0
12 |
13 | Unless required by applicable law or agreed to in writing,
14 | software distributed under the License is distributed on an
15 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | KIND, either express or implied. See the License for the
17 | specific language governing permissions and limitations
18 | under the License.
19 | -->
20 | ${node?node_name} = b
21 | ${node?root?node_name} = @document
22 | ${node['/']?node_name} = @document
23 |
24 | ${node['n:c']} = C<>&"']]>
25 |
26 | ${node?root.@@markup}
--------------------------------------------------------------------------------
/freemarker-jython25/src/test/resources/freemarker/test/templatesuite/templates/xml-ns_prefix-scope-lib.ftl:
--------------------------------------------------------------------------------
1 | <#ftl ns_prefixes={ "n": "http://freemarker.org/test/bar", "D": "http://freemarker.org/test/namespace-test" }>
2 | <#--
3 | Licensed to the Apache Software Foundation (ASF) under one
4 | or more contributor license agreements. See the NOTICE file
5 | distributed with this work for additional information
6 | regarding copyright ownership. The ASF licenses this file
7 | to you under the Apache License, Version 2.0 (the
8 | "License"); you may not use this file except in compliance
9 | with the License. You may obtain a copy of the License at
10 |
11 | http://www.apache.org/licenses/LICENSE-2.0
12 |
13 | Unless required by applicable law or agreed to in writing,
14 | software distributed under the License is distributed on an
15 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | KIND, either express or implied. See the License for the
17 | specific language governing permissions and limitations
18 | under the License.
19 | -->
20 | <#global libResult>//n:e: ${doc['//n:e']}, ${doc.root['n:e']}#global>
21 | <#macro m>
22 | //n:e: ${doc['//n:e']}, ${doc.root['n:e']}
23 | #macro>
--------------------------------------------------------------------------------
/freemarker-manual/src/main/docgen/en_US/docgen-misc/copyrightComment.txt:
--------------------------------------------------------------------------------
1 | Licensed to the Apache Software Foundation (ASF) under one
2 | or more contributor license agreements. See the NOTICE file
3 | distributed with this work for additional information
4 | regarding copyright ownership. The ASF licenses this file
5 | to you under the Apache License, Version 2.0 (the
6 | "License"); you may not use this file except in compliance
7 | with the License. You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing,
12 | software distributed under the License is distributed on an
13 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | KIND, either express or implied. See the License for the
15 | specific language governing permissions and limitations
16 | under the License.
17 |
--------------------------------------------------------------------------------
/freemarker-manual/src/main/docgen/en_US/docgen-misc/googleAnalytics.html:
--------------------------------------------------------------------------------
1 |
6 |
15 |
--------------------------------------------------------------------------------
/freemarker-manual/src/main/docgen/en_US/docgen-originals/figures/model2sketch_with_alpha.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/freemarker-manual/src/main/docgen/en_US/docgen-originals/figures/model2sketch_with_alpha.png
--------------------------------------------------------------------------------
/freemarker-manual/src/main/docgen/en_US/docgen-originals/figures/overview.odg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/freemarker-manual/src/main/docgen/en_US/docgen-originals/figures/overview.odg
--------------------------------------------------------------------------------
/freemarker-manual/src/main/docgen/en_US/docgen-originals/figures/tree_with_alpha.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/freemarker-manual/src/main/docgen/en_US/docgen-originals/figures/tree_with_alpha.png
--------------------------------------------------------------------------------
/freemarker-manual/src/main/docgen/en_US/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/freemarker-manual/src/main/docgen/en_US/favicon.png
--------------------------------------------------------------------------------
/freemarker-manual/src/main/docgen/en_US/figures/model2sketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/freemarker-manual/src/main/docgen/en_US/figures/model2sketch.png
--------------------------------------------------------------------------------
/freemarker-manual/src/main/docgen/en_US/figures/overview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/freemarker-manual/src/main/docgen/en_US/figures/overview.png
--------------------------------------------------------------------------------
/freemarker-manual/src/main/docgen/en_US/figures/tree.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/freemarker-manual/src/main/docgen/en_US/figures/tree.png
--------------------------------------------------------------------------------
/freemarker-manual/src/main/docgen/en_US/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/freemarker-manual/src/main/docgen/en_US/logo.png
--------------------------------------------------------------------------------
/freemarker-test-utils/src/main/java/freemarker/test/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Testing-related classes that don't fit into the normal packages.
22 | * Normally you put the test classes into the same package where the tested classes are, but under
23 | * {@code src/test/java/} instead of under {@code src/main/java/}.
24 | */
25 | package freemarker.test;
--------------------------------------------------------------------------------
/freemarker-test-utils/src/main/java/freemarker/test/templatesuite/models/BeanTestInterface.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.test.templatesuite.models;
21 |
22 | public interface BeanTestInterface {
23 | T getSomething();
24 | void setSomething(T s);
25 | }
26 |
--------------------------------------------------------------------------------
/freemarker-test-utils/src/main/java/freemarker/test/templatesuite/models/BeanTestSuperclass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.test.templatesuite.models;
21 |
22 | public class BeanTestSuperclass {
23 | public Integer getSomething() {
24 | return 42;
25 | }
26 |
27 | public void setSomething(Integer x) {
28 |
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/freemarker-test-utils/src/main/java/freemarker/test/templatesuite/models/EnumTestClass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package freemarker.test.templatesuite.models;
21 |
22 | /**
23 | */
24 | public enum EnumTestClass
25 | {
26 | ONE,
27 | TWO,
28 | THREE;
29 |
30 | @Override
31 | public String toString() {
32 | return name() + "x";
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/freemarker/a49abc81b7ba52f420f0c655d0206c54d5a05b95/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4 | distributionSha256Sum=9d926787066a081739e8200858338b4a69e837c3a821a33aca9db09dd4a41026
5 | zipStoreBase=GRADLE_USER_HOME
6 | zipStorePath=wrapper/dists
7 |
--------------------------------------------------------------------------------