├── .blade └── libs │ ├── cocoa │ ├── README.md │ ├── format.b │ ├── html.b │ ├── index.b │ ├── lexer.b │ ├── parser.b │ └── tags.b │ └── drawdown │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── app │ └── index.b │ ├── examples │ └── example1.b │ ├── index.b │ └── nyssa.json ├── .gitattributes ├── .github └── workflows │ └── release.yml ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── app ├── commands │ ├── account.b │ ├── clean.b │ ├── doc.b │ ├── info.b │ ├── init.b │ ├── install.b │ ├── publish.b │ ├── restore.b │ ├── serve.b │ └── uninstall.b ├── config.b ├── index.b ├── log.b ├── options │ └── version.b ├── package.b ├── publisher.b ├── server │ ├── api.b │ ├── db.b │ ├── errors.b │ ├── index.b │ ├── router.b │ ├── routes.b │ ├── statics.b │ ├── template.b │ ├── util.b │ └── views.b ├── setup.b └── util.b ├── docs ├── cleaning-cache-and-logs.md ├── commands.md ├── creating-projects.md ├── getting-project-info.md ├── hosting-a-private-repository.md ├── install-and-uninstall-actions.md ├── installing-nyssa.md ├── managing-dependencies.md ├── package-layout.md ├── publishers-account.md └── publishing-packages.md ├── examples └── .gitignore ├── index.b ├── nyssa ├── nyssa-cli.png ├── nyssa.cmd ├── nyssa.json ├── nyssa.png ├── public ├── css │ ├── bulma.min.css │ └── style.css ├── images │ ├── android-chrome-192x192.png │ ├── android-chrome-512x512.png │ ├── apple-touch-icon.png │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── favicon.ico │ ├── hero-bg-1.png │ ├── logo.png │ └── svg │ │ └── github.svg └── site.webmanifest ├── templates ├── 404.html ├── account.html ├── doc.html ├── home.html ├── inc │ ├── footer.html │ ├── header.html │ ├── logo.html │ ├── meta.html │ └── search-bar.html ├── login.html ├── search.html └── view.html └── tests └── .gitignore /.blade/libs/cocoa/README.md: -------------------------------------------------------------------------------- 1 | # cocoa 2 | 3 | Cocoa is a HTML to Blade object parser and Blade object to HTML converter developed as part of the Nyssa package manager. 4 | 5 | 6 | ### Features 7 | 8 | - Preserves whitespace 9 | - Line, column and index positions information 10 | 11 | 12 | ### Usage 13 | 14 | ``` 15 | import cocoa 16 | var asJson = cocoa.decode('

Hello

') # convert to blade 17 | echo asJson 18 | echo cocoa.encode(asJson) # convert to html string 19 | ``` 20 | 21 | ### Edge-cases handled 22 | Cocoaa handles a lot of HTML's edge-cases, like: 23 | 24 | - Closes unclosed tags `

...

` 25 | - Ignores extra closing tags `...` 26 | - Properly handles void tags like `` and `` 27 | - Properly handles self-closing tags like `` 28 | - Handles `` and `<-- comments -->` 29 | - Does not parse the contents of ` 136 | 137 | -------------------------------------------------------------------------------- /templates/doc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {uri|file_title} - Nyssa Package Manager 6 | 7 | 8 | 9 | 10 |
11 |
12 |
13 | 24 |
25 |
26 |
{content|draw}
27 |
28 |
29 |
30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /templates/home.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Nyssa Package Manager 6 | 7 | 8 | 9 | 10 |
11 | Nyssa support Blade v0.0.77 and above. 12 |
13 | 14 |
15 |
16 |
17 | 18 |
The official Blade language package manager
19 | 20 |
21 | 22 |
23 |
24 |
25 | 43 |
44 | 45 |
46 |
47 |
48 |

What is Nyssa?

49 |

An extension to Blade package management

50 |

51 | Nyssa is a simple abstraction on top of Blade's built-in package management facilities to provide a managed system of creating and consuming packages as well as manage their dependencies. Nyssa also provides you with a self-hostable package repository that can be used privately in organisations at large. 52 | 54 |

55 |
56 |
57 |
58 | 59 |
60 |
61 |
62 |
63 |

64 | 65 |

66 |
67 |
68 |

Authors

69 |

{publishers|format_number}

70 |
71 |
72 |
73 |
74 |

75 | 76 |

77 |
78 |
79 |

Total Packages

80 |

{packages|format_number}

81 |
82 |
83 |
84 |
85 |

86 | 87 |

88 |
89 |
90 |

Downloads

91 |

{downloads|format_number}

92 |
93 |
94 |
95 |
96 | 97 |
98 |
99 |
100 |
101 |

102 | Top Packages 103 |

104 |
105 |
106 |
107 |
108 | {package.name} 109 |
110 |
111 | @{package.publisher} 112 |
113 |
114 | {package.description} 115 | No description given. 116 |
117 |
118 |
119 | No packages found in this repository. 120 |
121 |
122 |
123 |
124 |
125 | 126 |
127 |
128 |

129 | Latest Packages 130 |

131 |
132 |
133 |
134 |
135 | {package.date_created} 136 |
137 |
138 | {package.name} 139 |
140 |
141 | @{package.publisher} 142 |
143 |
144 | {package.description} 145 | No description given. 146 |
147 |
148 |
149 | No packages found in this repository. 150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 | 158 | 159 | 160 | -------------------------------------------------------------------------------- /templates/inc/footer.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/inc/header.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/inc/logo.html: -------------------------------------------------------------------------------- 1 |

2 | Nyssa logo 3 | Nyssa 4 |

-------------------------------------------------------------------------------- /templates/inc/meta.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /templates/inc/search-bar.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | 5 | 6 | 7 | 8 |
9 | 10 |
11 | 12 |
13 |
14 |
-------------------------------------------------------------------------------- /templates/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Login - Nyssa Package Manager 6 | 7 | 8 | 9 | 10 |
11 |
12 |
13 | 14 |
15 | 16 |
17 |
Invalid Credentials
18 |
19 | 20 |
21 |

22 | 23 | 24 | 25 | 26 |

27 |
28 |
29 |

30 | 31 | 32 | 33 | 34 |

35 |
36 |
37 | 38 |
39 | 42 |
43 | To create an account, run the following command from your local installation: 44 |
45 | nyssa account create 46 |
47 |
48 |
49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /templates/search.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {query} - Nyssa Package Manager 6 | 7 | 8 | 9 | 12 | 13 |
14 |
15 |
16 |
17 |
18 |
Sort by
19 |
20 |
21 |
22 | 27 |
28 |
29 | 34 |
35 |
36 | 41 |
42 |
43 |
44 |
45 |
46 | Showing result {result.start|plus_one} to {result.end} of {result.total} (page {result.page} of {result.pages}) 47 |
48 |
49 |
50 |
51 | {package.name} 52 |
53 |
54 | @{package.publisher} published {package.version} at {package.created_at} with {package.download|format_number} downloads 55 |
56 |
57 |
58 | 59 | {package.description|strip_line} 60 | 61 | No description. 62 |
63 |
64 | {tag} 65 |
66 |
67 |
68 |
69 | No package found matching the term "{query}" 70 |
71 |
72 | 80 |
81 |
82 |
83 |
84 | 85 | 86 | 87 | 102 | 103 | -------------------------------------------------------------------------------- /templates/view.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {name} - Nyssa Package Manager 6 | 7 | 8 | 9 | 12 |
This package or version is archived.
13 | 14 |
15 |
16 |
17 |
18 |
19 |
{package.name}
20 |
21 |
22 | {package.version} 23 | @{package.publisher} 24 | {package.created_at} 25 |
26 |
27 |
28 | 33 |
34 |
{package.readme|draw}
35 | 47 | 55 |
56 |
57 |
58 |
59 |
Install
60 |
 61 |               nyssa install {package.name}
 62 |               nyssa install {package.name}@{package.version}
 63 |               
 64 |                 
 65 |               
 66 |             
67 |
Details
68 |
{package.description|strip_line}
69 |
No Description.
70 |
71 | {tag} 72 |
73 |
Homepage
74 |
75 | {package.homepage} 76 |
77 |
License: {package.license}
78 |
Downloads: {package.download}
79 |
80 |
81 |
82 |
83 |
84 | 85 | 86 | 87 | 143 | 144 | -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blade-lang/nyssa/7f7ae7b7f8607f20b73b97ddf0b761580395f3da/tests/.gitignore --------------------------------------------------------------------------------