mirror of https://tildegit.org/ben/dotfiles
33 lines
549 B
Plaintext
33 lines
549 B
Plaintext
|
<snippet>
|
||
|
<content><![CDATA[
|
||
|
import Html exposing (..)
|
||
|
|
||
|
|
||
|
-- MODEL
|
||
|
|
||
|
type alias Model = { ... }
|
||
|
|
||
|
|
||
|
-- UPDATE
|
||
|
|
||
|
type Msg = Reset | ...
|
||
|
|
||
|
update : Msg -> Model -> Model
|
||
|
update msg model =
|
||
|
case msg of
|
||
|
Reset -> ...
|
||
|
...
|
||
|
|
||
|
|
||
|
-- VIEW
|
||
|
|
||
|
view : Model -> Html Msg
|
||
|
view model =
|
||
|
...
|
||
|
]]></content>
|
||
|
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||
|
<tabTrigger>elmtemplate</tabTrigger>
|
||
|
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||
|
<scope>source.elm</scope>
|
||
|
</snippet>
|