mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	.mask support for Mask
This commit is contained in:
		| @@ -1020,6 +1020,13 @@ Markdown: | |||||||
|   - .mkdown |   - .mkdown | ||||||
|   - .ron |   - .ron | ||||||
|  |  | ||||||
|  | Mask: | ||||||
|  |   type: markup | ||||||
|  |   lexer: SCSS | ||||||
|  |   color: "#f97732" | ||||||
|  |   ace_mode: scss | ||||||
|  |   primary_extension: .mask | ||||||
|  |  | ||||||
| Matlab: | Matlab: | ||||||
|   type: programming |   type: programming | ||||||
|   color: "#bb92ac" |   color: "#bb92ac" | ||||||
|   | |||||||
							
								
								
									
										61
									
								
								samples/Mask/view.mask
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										61
									
								
								samples/Mask/view.mask
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,61 @@ | |||||||
|  |  | ||||||
|  | // HTML Elements | ||||||
|  | header { | ||||||
|  |      | ||||||
|  |     img .logo src='/images/~[currentLogo].png' alt=logo; | ||||||
|  |      | ||||||
|  |     h4 > 'Bar View' | ||||||
|  |      | ||||||
|  |     if (currentUser) { | ||||||
|  |          | ||||||
|  |         .account > | ||||||
|  |             a href='/acount' > | ||||||
|  |                 'Hello, ~[currentUser.username]' | ||||||
|  |     } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .view { | ||||||
|  |     ul { | ||||||
|  |         | ||||||
|  |         // Iteration | ||||||
|  |         for ((user, index) of users) { | ||||||
|  |              | ||||||
|  |             li.user data-id='~[user.id]' { | ||||||
|  |                  | ||||||
|  |                 // interpolation | ||||||
|  |                 .name > '~[ user.username ]' | ||||||
|  |                  | ||||||
|  |                 // expression | ||||||
|  |                 .count > '~[: user.level.toFixed(2) ]' | ||||||
|  |                  | ||||||
|  |                 // util | ||||||
|  |                 /* Localization sample | ||||||
|  |                  * lastActivity: "Am {0:dd. MM} war der letzte Eintrag" | ||||||
|  |                  */ | ||||||
|  |                 .date > '~[ L: "lastActivity",  user.date]' | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  |      | ||||||
|  |     // Component | ||||||
|  |     :countdownComponent { | ||||||
|  |         input type = text > | ||||||
|  |             :dualbind value='number'; | ||||||
|  |              | ||||||
|  |         button x-signal='click: countdownStart' > 'Start'; | ||||||
|  |          | ||||||
|  |         h5 { | ||||||
|  |             '~[bind: number]' | ||||||
|  |              | ||||||
|  |             :animation x-slot='countdownStart' { | ||||||
|  |                 @model > 'transition | scale(0) > scale(1) | 500ms' | ||||||
|  |                 @next  > 'background-color | red > blue | 2s linear' | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | footer > :bazCompo { | ||||||
|  |      | ||||||
|  |     'Component generated at ~[: $u.format($c.date, "HH-mm") ]' | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user