Lasso Soft Inc. > Home

[tags_custom]

Linktags_custom
AuthorJason Huck
CategoryTags
Version8.x
Licensehttp://opensource.org/licenses/artistic-license.php
Posted09 Mar 2006
Updated28 May 2006
More by this author...

Description

This tag compares the full list of tags from [tags_list] to the list of tags from [tags_native] and returns the difference as an array. Requires [tags_native].

Sample Usage

iterate(tags_custom, local('i'));
	#i + '
\n'; /iterate;

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

define_tag(
	'custom',
	-namespace='tags_',
	-priority='replace',
	-description='Returns a set of undocumented and custom tags currently loaded.'
);
	local(
		'tags_complete' = array,
		'tags_standard' = tags_native,
		'tags_custom' = set
	);

	iterate(tags_list, local('i'));
		local('t') = #i;
		#t->removeleading('_global_')&lowercase;
		!#t->beginswith('_') ? #tags_complete->insert(#t);
	/iterate;
	
	#tags_complete->sort;
			
	iterate(#tags_complete, local('i'));
		!#tags_standard->find(#i)->size ? #tags_custom->insert(#i);
	/iterate;
	
	return(#tags_custom);
/define_tag;

Related Tags

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft