Mask is an actively used template language created in 2012.

7Years Old 116Users 0Jobs
  • Mask ranks in the top 50% of languages
  • the Mask website
  • Mask on github
  • Mask first appeared in 2012
  • file extensions for Mask include mask
  • I have 38 facts about Mask. what would you like to know? email me and let me know how I can help.

Example code from Linguist:

// 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") ]'
}

Trending Repos

repo stars description

Last updated November 16th, 2019