Package: yelp-cheetah
yelp_cheetahCheetah is an open source template engine and code generation tool.yelp_cheetah is cheetah with everything we don't / shouldn't use removed.Differences0.19.1Fix build on pypy.0.19.0Add error message for missing partial template#extendsunder test.Fix warnings in python3+.Drop support for python 2.Build abi3 wheels.0.18.0Some optimizations of list comprehensionsLookup speed improvementsRemoveenable_auto_selfsetting (alwaysFalse)RemoveuseNameMappersetting (alwaysTrue)Add anauto_selfkwarg togetVarandvarExistsdefaulting toTrue(will default toFalseand be removed in a future version).0.17.0enable_auto_selfsetting now defaults toFalseLookup involving partial templates calling partial templates is now
optimized.0.16.1Add a parsing hook for cheetah variables0.16.0$foo()barno longer compiles tofoo.bargettext parsing was removed -- it never worked properly.  To get gettext
scannable compiled output, create a compiler, augment._global_varswith
the gettext functions.$()and$[]are now syntax errors -- use${}instead${ foo }is now a syntax error -- placeholders cannot start with whitespaceEscaped newlines in expressions are preservedBug with comments in a multi-line expression fixedFix several parsing issues around expressionsFix several parsing issues around#def0.15.2Add anenable_auto_selfsetting (defaulted toTrue) which (when enabled)
means$foocan mean eitherself.fooorNS['foo'](the behaviour prior
to this version).  In future versions, this will default toFalseand will
eventually be eliminated.0.15.1Introduce unused functions for lookup.  These will be used for backwards /
forwards compatibility in the next release.0.15.0Remove#calldirective (port to#withinstead)0.14.0Useio.StringIOas a replacement forDummyTransactionDrop python2.6 support0.13.2Require six>=1.4.0 (for six.PY2)0.13.1Add setuptools extension to build templates.  To use addsetup_requires=['yelp-cheetah']andyelp_cheetah={'directories': [...]}to automatically build templates in a package on installation.0.13.0Remove#setand#silent(replaced by#py)0.12.1Fix regression introduced in 0.11.0:$self.getVar('contains_underscore')0.12.0Fix regression introduced in 0.11.0:[$x for x in ...]0.11.0Remove instrumentation added in 0.10.0RemoveuseAutocallingsetting (always False)RemoveuseDottedNotationsetting (always False)RemovemainMethodNamesetting (always respond)RemovemainMethodNameForSubclassessetting (always writeBody)RemovevalueForName(now unused)Implement ContextManagerPartialTemplateTestCaseTemplate now only takes a single argumentnamespaceinstead of searchListSupport pypy for realTemplate.getVar / Template.varExists no longer support dots0.10.0Added instrumentation to migrate away from autocall / autokey0.9.0Tests pass under pypy (still slow)"Blinged" kwargs no longer supported:$foo($bar='baz') => $foo(bar='baz')0.8.0#filterdirective is gone.  Useself.set_filter(filter_fn)Template's signature is nowTemplate(search_list, filter_fn)All templates now havefrom __future__ import absolute_import0.7.0removed macro support: use#withinstead.much-improved support for context managers.Raise on unknown settingsRemove settings:cheetahVarStartToken,commentStartToken,directiveStartToken,directiveEndTokenFix indexing a return value #23Add#pydirective.  This will replace#silentand#setin a future versionRemove<% ... %>Optimize lookup of builtins, globals, and locals when detected.0.6.0Cheetah classes now invariantly haveYelpCheetahTemplateas the classnameVariable lookup is nowlocals(),globals(),builtins,self,searchList#extendsno longer supports#extends foo.fooand should instead be#extends foo0.5.0**KWSis no longer added to every template method definition0.4.1Scan gettext variables in attributes$translator.gettext(...)Scan more types of gettext variables (gettext,pgettext,npgettext).Remove some runtime overhead of gettext variables0.4.0Remove dollarsigns onforlvaluesRemove#set globaldirectiveRemovefuture_unicode_literalssettingDisallow dollarsigns ingetVar/varExists0.3.5Do not create__init__.pyin__pycache__directories0.3.4Invariantly create__init__.pyin subdirectories0.3.3dep argparse0.3.2cheetah-compiletakes directories0.3.1Fix partial template testing infrastructure0.3.0Disallow dollarsigns on#def/#blocknameDisallow dollarsigns in function signaturesRequire argspec for#defRequres no argspec for#blockRequire no dollarsign in#setlvalueDisallow dollarsigns in macro argumentsDisallow dollarsigns in#attrlvalueForbid@classmethod/@staticmethodRemove#set moduledirectiveAdd testing infrastructure for partial template testing0.2.1Addcompile_directories0.2.0Add#withdirective100% test coverage0.1.4Make filters simple functions instead of classesAdd and make defaultmarkupsafefilter0.1.3AddCheetah.partial_template, a system for importable template functions.0.1.2RenameCheetah.CompilerandCheetah.ParsertoCheetah.legacy_compilerandCheetah.legacy_parserRemove#encodingdirective, cheetah source is now invariantlyUTF-80.1.1Raise on unknown macrosRemove#echodirectiveRemove#* ... *#multiline comment syntaxRemove version checking codeRemove#argdirectiveRemove#closuredirectiveMake compilation output deterministicRemove<%=...%>Remove ability to specify argspecs in#implementsRemove multiple inheritance from#extendsRemove#compilerdirectiveRemove global imports: (sys,os,os.path,builtin,getmtime,exists,types)DefaultuseDottedNotationto falseRemoveallowNestedDefScopessettingRemoveuseSearchListsettingRemoveuseKWsForPassingTranssettingRemovealwaysFilterNonesettingRemove cheetah ternary#if ... then ... else ...directiveRemovenamespaceargument fromTemplate.__init__Support Python 3Expose a global__YELP_CHEETAH__ = Truein compiled sourceRemoveautoImportForExtendssetting (always True)Disable#extendsof an imported nameAdd settingfuture_unicode_literalsfor togglingunicode_literalsin compiled source0.1.0Removed Cheetah AnalyzerRemoved textmate highlight supportRemove logging of placeholdersRemove Django supportMake useAutoCalling default to FalseRemove#cachedirectiveRemove MondoRemove RecursiveNullRemove SiteHierarchyRemove turbocheetahRemove ServletRemove silent placeholders ($!placeholder)Remove#errorCatcherdirectiveRemove WebWare supportRemove FileUtilsRemove hasNameRemove IndenterRemove#indentdirectiveRemove cheetah evalc'$var'syntaxRemove import hook, live compiling, compilation cacheRemove CheetahWrapperRemove#I18nmacroImprove cmdline interfaceRemove several magical imports (time,currentTime, etc.)Remove#unicodedirectiveRemove#breakpointdirectiveRemove#unlessdirectiveRemove#repeatdirectiveRemove#capturedirectiveImprove compiling interface.  There are now three functions: (compile_source,compile_file,compile_to_class)Remove#defmacrodirectiveRemove#includedirectiveRemovegetFileContentsRemove preprocessorsRemoveaddSrcTimeToOutputsettingRemovedisabledDirectivessettingRemovepre/postParseDirectivehooksRemove placeholder hooksRemove expression hooksRemoveI18NFunctionNameRemoveEmptySingleLineMethodssettingRemoveallowWhitespaceAfterDirectiveStartTokenRemovetemplateMetaclasssettingRequireunicodefor compiling sourceRemove#transformdirectiveRemoveWebsafe,Markdown,CodeHighlight,Maxlen,StripfiltersRemove aliases forBaseFilterRemovenamespacesargument forTemplateconstructorRemove#stopdirectiveRemoveuseFilterssetting (always True)RemoveallowPlaceholderFilterArgssettingRemoveencodingsettingRemoveEOLSlurpfeatureRemove#rawdirectiveRemove C implementation of filtersRemoveoutputMethodsBeforeAttributessettingRemovedefDocStrMsgsettingRemovehandlerForExtendsDirectivesettingRemove__str__from all objectsRemove support for pypy (Delete python implementation of NameMapper)RemoveuseStackFramessettingRemove#importsettingsdirectiveRemove#compiler-settings pythondirectiveRemovesafeConvertRemove*importsRaise on searchlist collisionsFix bug with macros causing out-of-bounds when near end of source0.0.1Correct dependencies0.0.0Before hacking