From f8e8be47c566334ab33379ec0a0f30d933b1b25c Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sat, 20 Jan 2024 19:19:02 -0500 Subject: [PATCH] Add "example" comments to templates --- fake_home/.vim/templates/Dockerfile | 2 ++ fake_home/.vim/templates/skeleton.c | 2 ++ fake_home/.vim/templates/skeleton.cpp | 2 ++ fake_home/.vim/templates/skeleton.html | 3 +++ fake_home/.vim/templates/skeleton.java | 2 ++ fake_home/.vim/templates/skeleton.js | 2 ++ fake_home/.vim/templates/skeleton.py | 2 ++ fake_home/.vim/templates/skeleton.rb | 2 ++ 8 files changed, 17 insertions(+) diff --git a/fake_home/.vim/templates/Dockerfile b/fake_home/.vim/templates/Dockerfile index 494ffdb..b6fa722 100644 --- a/fake_home/.vim/templates/Dockerfile +++ b/fake_home/.vim/templates/Dockerfile @@ -1,3 +1,5 @@ +# Example Dockerfile + FROM node:alpine RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app diff --git a/fake_home/.vim/templates/skeleton.c b/fake_home/.vim/templates/skeleton.c index 682b4ca..77ad160 100644 --- a/fake_home/.vim/templates/skeleton.c +++ b/fake_home/.vim/templates/skeleton.c @@ -1,3 +1,5 @@ +// skeleton.c + #include int main(int argc, char* argv[]) diff --git a/fake_home/.vim/templates/skeleton.cpp b/fake_home/.vim/templates/skeleton.cpp index 4f7a350..d7ae4ec 100644 --- a/fake_home/.vim/templates/skeleton.cpp +++ b/fake_home/.vim/templates/skeleton.cpp @@ -1,3 +1,5 @@ +// skeleton.cpp + #include class Person diff --git a/fake_home/.vim/templates/skeleton.html b/fake_home/.vim/templates/skeleton.html index db14f4e..cbfe79f 100644 --- a/fake_home/.vim/templates/skeleton.html +++ b/fake_home/.vim/templates/skeleton.html @@ -1,4 +1,7 @@ + + + diff --git a/fake_home/.vim/templates/skeleton.java b/fake_home/.vim/templates/skeleton.java index ce9b90f..815053b 100644 --- a/fake_home/.vim/templates/skeleton.java +++ b/fake_home/.vim/templates/skeleton.java @@ -1,3 +1,5 @@ +// skeleton.java + class Main { public static void main(String[] args) { System.out.println("Hello, World!"); diff --git a/fake_home/.vim/templates/skeleton.js b/fake_home/.vim/templates/skeleton.js index 553fa0a..4983c21 100644 --- a/fake_home/.vim/templates/skeleton.js +++ b/fake_home/.vim/templates/skeleton.js @@ -1,3 +1,5 @@ +// skeleton.js + document.addEventListener('DOMContentLoaded', function initJs () { console.log('Hello, world!') }) diff --git a/fake_home/.vim/templates/skeleton.py b/fake_home/.vim/templates/skeleton.py index 1b7048c..f72f85e 100755 --- a/fake_home/.vim/templates/skeleton.py +++ b/fake_home/.vim/templates/skeleton.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +# skeleton.py + class Person: def __init__(self, name, greeting = "Hello!"): self.name = name diff --git a/fake_home/.vim/templates/skeleton.rb b/fake_home/.vim/templates/skeleton.rb index 5f8ddf6..9c5ea0c 100755 --- a/fake_home/.vim/templates/skeleton.rb +++ b/fake_home/.vim/templates/skeleton.rb @@ -1,5 +1,7 @@ #!/usr/bin/env ruby +# skeleton.rb + class Person def initialize(name) @name = name