Code Monkey home page Code Monkey logo

Comments (4)

evilz avatar evilz commented on July 30, 2024 1

I will do this :)

from vscode-reveal.

evilz avatar evilz commented on July 30, 2024

In fact revealjs is already in 3.7 in source code
https://github.com/evilz/vscode-reveal/blob/master/package-lock.json#L2399-L2403

I studding the best way to make a powerful and simple templating feature.

from vscode-reveal.

dezGusty avatar dezGusty commented on July 30, 2024

I'm not sure whether this helps or not, but the way in which I made it work for me was to add a configuration option named postInitScript (value: string; e.g. postinit.js) , which allows users to point to a file on the disk to add some custom initialization code. I updated the Template.js script.

Any additions are in the local structure.

  • css\
  • data\
  • lib\
  • plugin\
  • webfonts\
  • favicon.ico
  • postinit.js
  • myfile.md

I typically start code in such a dir...

code .

A gist of the sample here

Issues:

  • no checks for availability of source file (if the user sets the value to js/xxx.js and there is no such file, it breaks the plug-in (no display of the preview) . Perhaps it would be better to not have an option; but to have a fixed file name and location (e.g. js/postinit.js) and store it the vscode extension dir (would also require updating the express initialization in Server.js)
  • not sure how to best add extra css files, such as all.min.css.

from vscode-reveal.

evilz avatar evilz commented on July 30, 2024

Thank,

I'm going to stay with a fixed template fro next release, but with some changes :

  • more plugins with toggle in configuration
  • js file to load
  • more default css

from vscode-reveal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.