Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save opencoca/0e7a9f18e39a5b0dba68c1a3ba776e4b to your computer and use it in GitHub Desktop.
Save opencoca/0e7a9f18e39a5b0dba68c1a3ba776e4b to your computer and use it in GitHub Desktop.
GPT J Vue Code example (this code was generated)
<!-- Vue template for FAQ page -->
<section>
<div id="app" class="container">
<h1 class="content">{{
title
}}</h1>
<p class="description">{{
description
}}</p>
<div class="clearfix"></div>
<ul class="faq">
<li v-for="(question, index) in questions" :key="index">
<p class="question">
{{
question.title
}}
</p>
<p class="answer">{{
question.answer
}}</p>
</li>
</ul>
<div class="clearfix"></div>
</div>
</section>
var app = new Vue( {
el: "#app",
data: {
title: 'How can I add content to my FAQ?',
description: 'Ask your question here...',
questions: [
{ title: 'What is a sitemap?', answer: 'A sitemap is a directory of links that enables a search engine to index the pages on your website.' },
{ title: 'What is an RSS feed?', answer: 'RSS (Really Simple Syndication) is a way of publishing articles on a website.' },
{ title: 'What is a website template?', answer: 'A website template is a ready-made design for building a website. These can be downloaded from a 3rd party website.' },
{ title: 'What is a plugin?', answer: 'A plugin is a piece of software that can be added to your WordPress website to add extra functionality or'}
]
}
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.11/vue.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/@exampledev/new.css@1.1.2/new.min.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment