mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 07:32:59 +00:00 
			
		
		
		
	Add support for macro modules
Now JavaScript macros can be defined in "macro" modules
This commit is contained in:
		
							
								
								
									
										30
									
								
								core/modules/macros/version.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								core/modules/macros/version.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| /*\ | ||||
| title: $:/core/modules/macros/version.js | ||||
| type: application/javascript | ||||
| module-type: macro | ||||
|  | ||||
| Macro to return the TiddlyWiki core version number | ||||
|  | ||||
| \*/ | ||||
| (function(){ | ||||
|  | ||||
| /*jslint node: true, browser: true */ | ||||
| /*global $tw: false */ | ||||
| "use strict"; | ||||
|  | ||||
| /* | ||||
| Information about this macro | ||||
| */ | ||||
|  | ||||
| exports.name = "version"; | ||||
|  | ||||
| exports.params = []; | ||||
|  | ||||
| /* | ||||
| Run the macro | ||||
| */ | ||||
| exports.run = function() { | ||||
| 	return $tw.version; | ||||
| }; | ||||
|  | ||||
| })(); | ||||
		Reference in New Issue
	
	Block a user
	 Jeremy Ruston
					Jeremy Ruston